Update actions/checkout action to v4 #59
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
on: | |
pull_request: | |
paths-ignore: | |
- "README.md" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3.5.0 | |
with: | |
go-version: "1.18" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4.1.6 | |
- name: Build | |
run: | | |
go build -v . | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v3.5.0 | |
with: | |
go-version: "1.18" | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4.1.6 | |
- name: Unit testing | |
run: | | |
go test -v -cover . |