Skip to content

Commit

Permalink
ci: running tests on multiple go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Jun 16, 2023
1 parent a9ec61a commit 4c1670c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/actions/build-dependencies/action.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: Build Dependencies
description: |
Install build dependencies to test and compile tracee artifacts
inputs:
go-version:
description: go version
default: "1.18"
runs:
using: composite
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.18"
go-version: "${{ inputs.go-version }}"
- name: Install Compilers & Formatters
run: |
sudo apt-get update
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,32 @@ jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [ 1.17, 1.18, 1.19, '1.20', 'latest' ]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
uses: ./.github/actions/build-dependencies
with:
go-version: ${{ matrix.go-version }}
- name: Test Helpers
run: |
make helpers-test-static-run
self-tests:
name: Selftests
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [ 1.17, 1.18, 1.19, '1.20', 'latest' ]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
uses: ./.github/actions/build-dependencies
with:
go-version: ${{ matrix.go-version }}
- name: Static Selftests
run: |
make selftest-static-run

0 comments on commit 4c1670c

Please sign in to comment.