Skip to content

Commit

Permalink
chore: run CI against all Go versions newer than the minimal one set …
Browse files Browse the repository at this point in the history
…in go.mod

Signed-off-by: Radoslav Dimitrov <[email protected]>
  • Loading branch information
rdimitrov committed Mar 24, 2022
1 parent 6f4be57 commit e8c8cf9
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,34 @@ on:
workflow_call:
name: Tests
jobs:
get-go-versions:
name: Collect available Go versions
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- uses: arnested/go-version-action@v1
id: versions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run:
strategy:
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x]
os: [ubuntu-latest, macos-latest]
go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }}
runs-on: ${{ matrix.os }}
needs: get-go-versions
steps:
- name: Setup - Go
- name: Checkout code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup - Go ${{ matrix.go-version }}
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579

- name: Setup - Python
uses: actions/setup-python@7f80679172b057fc5e90d70d197929d454754a5a
with:
Expand All @@ -41,9 +54,10 @@ jobs:
golangci:
strategy:
matrix:
go-version: [1.16.x, 1.17.x, 1.18.x]
go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }}
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
needs: get-go-versions
steps:
- uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
Expand Down

0 comments on commit e8c8cf9

Please sign in to comment.