Skip to content

Merge pull request #417 from cloudfoundry/dependabot/go_modules/util/… #558

Merge pull request #417 from cloudfoundry/dependabot/go_modules/util/…

Merge pull request #417 from cloudfoundry/dependabot/go_modules/util/… #558

Workflow file for this run

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 }}