Merge pull request #9 from consensus-shipyard/maciej/fixes #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
tests-go-stable: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: faucet | |
strategy: | |
matrix: | |
go: [ '1.20' ] | |
steps: | |
- name: Set up Golang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Test | |
run: make tests | |
- name: Retain event logs of failed tests | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: event-log-go-1.20 | |
path: failed-test-data | |
tests-go-latest: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: faucet | |
steps: | |
- name: Set up Golang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
check-latest: true | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Test | |
run: make tests | |
- name: Retain event logs of failed tests | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: event-log-go-latest | |
path: failed-test-data |