mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-22 06:40:43 +08:00
35 lines
749 B
YAML
35 lines
749 B
YAML
name: Go
|
|
on:
|
|
push:
|
|
branches: [ master,dev ]
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- '.github/workflows/go.yml'
|
|
pull_request:
|
|
paths:
|
|
- '**.go'
|
|
- 'go.mod'
|
|
- '.github/workflows/go.yml'
|
|
env:
|
|
GOPROXY: "https://proxy.golang.org"
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: create dist directory
|
|
run: mkdir frontend/dist && touch frontend/dist/revsuit
|
|
- name: Install Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.19.x
|
|
- name: Run golangci-lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: v1.49.0
|
|
args: --timeout=30m
|