Skip to content

added matrix to workflow #2

added matrix to workflow

added matrix to workflow #2

Workflow file for this run

name: Build and test jose2go project
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-and-test:
runs-on: ${{ matrix.os}}

Check failure on line 12 in .github/workflows/go.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/go.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
version: ['1.20']
steps:
- name: Checkout library sources
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test ./...