Skip to content

workflows/ci.yml: Add multiple Go versions to testing matrix #9

workflows/ci.yml: Add multiple Go versions to testing matrix

workflows/ci.yml: Add multiple Go versions to testing matrix #9

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
tests:
name: Go ${{ matrix.go-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:

Check failure on line 19 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
go-version:
'1.17'
'1.18'
'1.19'
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: ${{ matrix.go-version }}
- name: Run Tests
run: |
go test -cover ./...
shell: bash
formatting:
name: Go Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- name: Check formatting
run: ./.gha.gofmt.sh