Merge pull request #39 from stacklok/dependabot/go_modules/golang.org… #92
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: Test and Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: Run Go Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v3 | |
- name: Set up Go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v3 | |
with: | |
go-version: '1.22.1' | |
- name: Get dependencies | |
run: go mod tidy | |
- name: Run tests | |
run: go test ./... -v |