| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
name: Build |
| 15 |
|
| 16 |
on: |
| 17 |
push: |
| 18 |
pull_request: |
| 19 |
|
| 20 |
permissions: |
| 21 |
contents: read |
| 22 |
|
| 23 |
jobs: |
| 24 |
build: |
| 25 |
runs-on: ubuntu-latest |
| 26 |
strategy: |
| 27 |
matrix: |
| 28 |
go-version: [ "1.20", "1.21" ] |
| 29 |
fail-fast: true |
| 30 |
steps: |
| 31 |
- name: Check out code |
| 32 |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 |
| 33 |
- name: Set up Go ${{ matrix.go-version }} |
| 34 |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 |
| 35 |
with: |
| 36 |
go-version: ${{ matrix.go-version }} |
| 37 |
check-latest: true |
| 38 |
- name: Run unit tests |
| 39 |
run: make test |
| 40 |
- name: Run e2e tests |
| 41 |
run: make e2e |
| 42 |
- name: Upload coverage to codecov.io |
| 43 |
uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 |