Skip to content

Commit

Permalink
Run CI on all supported versions of Go
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Sep 27, 2024
1 parent 99e26ad commit 834b530
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ on:
branches:
- master
pull_request:

name: CI
jobs:
test:
name: Test
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
go-version: ["1.17", "1.18", "1.19", "1.20", "1.21", "1.22", "stable"]
steps:
- name: Checkout code
- name: Checkout Repository
uses: actions/checkout@v4
- name: Init Hermit
run: ./bin/hermit env -r >> $GITHUB_ENV

- name: Setup Golang Environment
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Test
run: go test ./...
run: go test ./... -race -shuffle=on -v

0 comments on commit 834b530

Please sign in to comment.