DSA/.github/workflows/go.yml

28 lines
756 B
YAML
Raw Normal View History

2021-04-18 14:26:25 +00:00
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 ./...)