diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fdde8ae..0b1308f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,4 +1,5 @@ name: Build + on: push: branches: @@ -6,40 +7,28 @@ on: pull_request: jobs: - lint: - name: golangci-lint + golangci-lint: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Run golangci-lint - uses: golangci/golangci-lint-action@v1 + uses: golangci/golangci-lint-action@v2.4.0 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. version: v1.31 args: --timeout 5m - working-directory: v2/ - - # Optional: working directory, useful for monorepos - # working-directory: somedir - - # Optional: golangci-lint command line arguments. - # args: --issues-exit-code=0 - - # Optional: show only new issues if it's a pull request. The default value is `false`. - # only-new-issues: true build: - name: Build runs-on: ubuntu-latest steps: + - name: Check out code + uses: actions/checkout@v2 + - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.13 - - - name: Check out code - uses: actions/checkout@v2 + go-version: 1.15 - name: Test run: go test . @@ -47,4 +36,4 @@ jobs: - name: Build run: go build . - working-directory: v2/cmd/subfinder/ + working-directory: v2/cmd/subfinder/ \ No newline at end of file