mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-21 22:30:46 +08:00
31 lines
620 B
YAML
31 lines
620 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
|
|
- name: Run golangci-lint
|
|
uses: golangci/[email protected]
|
|
with:
|
|
version: v1.37.0
|
|
args: --timeout=30m
|