WIP: Re-add force-failure #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Lint | |
| on: | |
| push: | |
| branches: [ "actions-lint" ] | |
| pull_request: | |
| branches: [ "actions-lint" ] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| # container: cloudfoundry/tas-runtime-build | |
| steps: | |
| # - name: Install node | |
| # run: apt update && apt install -y nodejs | |
| - name: Check out release code | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: cloudfoundry/diego-release | |
| ref: refs/heads/develop | |
| submodules: recursive | |
| - name: Check out locket code | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: cloudfoundry/locket | |
| path: src/code.cloudfoundry.org/locket | |
| - name: Setup go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24' | |
| check-latest: true | |
| - name: Confirm go version | |
| run: go version | |
| - name: Confirm location | |
| run: pwd && ls -al | |
| - name: Run `go vet` | |
| working-directory: src/code.cloudfoundry.org | |
| run: go vet ./... | |
| # - name: Confirm working-directory location | |
| # working-directory: src/code.cloudfoundry.org/locket | |
| # run: pwd && ls -al | |
| # - name: Run `go vet` | |
| # working-directory: src/code.cloudfoundry.org/locket | |
| # run: go vet ./... | |
| # - name: Run `staticcheck` | |
| # working-directory: src/code.cloudfoundry.org/locket | |
| # run: GOFLAGS="-buildvcs=false" staticcheck ./... |