diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22bb4f4..85c5e5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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