28 lines
756 B
YAML
28 lines
756 B
YAML
|
name: Go
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ main ]
|
||
|
paths: '**.go'
|
||
|
pull_request:
|
||
|
branches: [ main ]
|
||
|
paths: '**.go'
|
||
|
jobs:
|
||
|
Go:
|
||
|
name: Go
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- run: go list -e -json -compiled=true -test=true -export=true -deps=true -find=false -- ./...
|
||
|
- name: golangci-lint
|
||
|
uses: golangci/golangci-lint-action@v2
|
||
|
with:
|
||
|
version: latest
|
||
|
|
||
|
# args: ./...
|
||
|
# Optional: working directory, useful for monorepos
|
||
|
# working-directory: algorithms/Go
|
||
|
|
||
|
# Optional: show only new issues if it's a pull request. The default value is `false`.
|
||
|
# only-new-issues: true
|
||
|
- run: go test $(go list ./...)
|