Test #265
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: 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@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.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 |