Skip to content

Add a new method to perform a check without changing the cache value. #15

Add a new method to perform a check without changing the cache value.

Add a new method to perform a check without changing the cache value. #15

Workflow file for this run

name: unit tests
on:
push:
branches:
- main
pull_request:
jobs:
tests:
strategy:
fail-fast: false
matrix:
go-version: [ 1.18.x, 1.19.x, 1.20.x, 1.21.x ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
include:
- go-version: 1.18.x
os: ubuntu-latest
- go-version: 1.19.x
os: macos-latest
- go-version: 1.20.x
os: windows-latest
- go-version: 1.21.x
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Restore Cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-v3-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-v3-go-
- name: Test
run: go test .