Merge pull request #262 from rancher/dependabot/github_actions/slacka… #410
Workflow file for this run
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: Unit tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.20.x | |
- uses: actions/cache@v3.3.1 | |
with: | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
key: ${{ runner.os }}-test-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-test-go-${{ hashFiles('**/go.sum') }} | |
- name: Run tests | |
run: | | |
make test |