| 1 |
name: Test |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
pull_request: |
| 6 |
|
| 7 |
permissions: {} |
| 8 |
|
| 9 |
jobs: |
| 10 |
test: |
| 11 |
strategy: |
| 12 |
matrix: |
| 13 |
go-version: [oldstable, stable] |
| 14 |
platform: [ubuntu-latest, macos-latest, windows-latest] |
| 15 |
runs-on: ${{ matrix.platform }} |
| 16 |
steps: |
| 17 |
- name: Checkout code |
| 18 |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 19 |
|
| 20 |
- name: Install Go |
| 21 |
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 |
| 22 |
with: |
| 23 |
go-version: ${{ matrix.go-version }} |
| 24 |
|
| 25 |
- name: Validate |
| 26 |
if: matrix.platform == 'ubuntu-latest' |
| 27 |
run: make validate |
| 28 |
|
| 29 |
- name: Test |
| 30 |
run: make test |