Merge pull request #427 from cloudfoundry/dependabot/go_modules/ci/re… #580
This file contains 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
name: Go | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dir: | |
- "." | |
- "tasks/lookup-slack-channel-for-release-owner" | |
- "util/update-manifest-releases" | |
- "util/cat-search-tool" | |
- "ci/resources/stemcell-version-bump" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
- run: go test -v -race ./... | |
working-directory: ${{ matrix.dir }} | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dir: | |
- "." | |
- "tasks/lookup-slack-channel-for-release-owner" | |
- "util/update-manifest-releases" | |
- "util/cat-search-tool" | |
- "ci/resources/stemcell-version-bump" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
- uses: golangci/golangci-lint-action@v3.3.0 | |
with: | |
working-directory: ${{ matrix.dir }} |