This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
chore(deps): update actions/checkout action to v4 #236
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: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request_target: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go-version: [1.14, 1.15] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: setup go ${{ matrix.go-version }} | |
uses: actions/setup-go@v2.1.5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- name: check out code | |
uses: actions/checkout@v4.1.1 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.head_ref }} | |
- uses: actions/cache@v2.1.8 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | |
${{ runner.os }}-go-${{ matrix.go-version }}- | |
- name: test | |
run: go test -v ./... |