Skip to content

Test

Test #361

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
paths-ignore:
- README.md
schedule:
- cron: '55 5 * * 1-5'
jobs:
versions:
name: Go ${{ matrix.go-version }} (${{ matrix.platform }})
runs-on: ${{ matrix.platform }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
go-version: [1.19.x, 1.20.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Run fmt and vet
run: make fmt vet
- name: Check if directory is clean
run: git diff --exit-code
- name: Print SSH version
run: ssh -V
- name: Test
run: make test