build(deps): bump actions/cache from 4.0.0 to 4.0.1 #18
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: Go | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Cache | |
uses: actions/[email protected] | |
with: | |
path: | | |
**/go.sum | |
**/go.mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
- run: go version | |
- name: Examine source code for Linux AMD | |
run: GOOS=linux GOARCH=amd64 go vet -v ./... | |
- name: Examine source code for MacOS AMD | |
run: GOOS=darwin GOARCH=amd64 go vet -v ./... | |
- name: Examine source code for Windows AMD | |
run: GOOS=windows GOARCH=amd64 go vet -v ./... | |
- name: Examine source code for Linux ARM | |
run: GOOS=linux GOARCH=arm64 go vet -v ./... | |
- name: Examine source code for MacOS ARM | |
run: GOOS=darwin GOARCH=arm64 go vet -v ./... | |
- name: Examine source code for Windows ARM | |
run: GOOS=windows GOARCH=arm64 go vet -v ./... | |
- name: Gosec security scanner | |
uses: securego/gosec@master | |
with: | |
args: -exclude-dir=_example ./... |