Skip to content

Commit

Permalink
added matrix to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsekhvalnov committed Apr 19, 2024
1 parent d2baff2 commit 1a4ba55
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go
name: Build and test jose2go project

on:
push:
Expand All @@ -11,19 +8,25 @@ on:

jobs:

build:
runs-on: ubuntu-latest
build-and-test:
runs-on: ${{ matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
version: ['1.20']
steps:
- uses: actions/checkout@v3
- name: Checkout library sources
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: ${{ matrix.version }}

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test ./...

0 comments on commit 1a4ba55

Please sign in to comment.