This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
Merge pull request #24 from stacklok/dependabot/go_modules/golang.org… #43
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- name: Set up Go | |
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 | |
with: | |
go-version: '1.22.1' | |
- name: Get dependencies | |
run: go mod tidy | |
- name: Run tests | |
run: go test ./... -v |