Skip to content

Bump docker/login-action from 2 to 3 #157

Bump docker/login-action from 2 to 3

Bump docker/login-action from 2 to 3 #157

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request: ~
# Allow job to be triggered manually.
workflow_dispatch:
# Cancel in-progress jobs when pushing to the same branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: "Go ${{ matrix.go-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
go-version: [ 1.20.x, 1.21.x ]
fail-fast: true
steps:
- name: Acquire sources
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Apply module cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Lint code using gofmt
run: |
./devtools/check-gofmt
- name: Invoke tests
run: |
go test -v