Use Docker Run Instead of GHA container image for node 16 shutdown #2835
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: relay | |
on: | |
pull_request: | |
push: | |
branches: | |
- develop | |
jobs: | |
relay_run_unit_tests: | |
name: Relay Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version-file: "go.mod" | |
check-latest: true | |
- name: Check go mod tidy | |
run: | | |
go mod tidy | |
echo "if this fails run 'go mod tidy' to fix" | |
git diff --stat --exit-code | |
- name: Install Solana CLI | |
run: ./scripts/install-solana-ci.sh | |
- name: Compilation check | |
run: go test -run=xxx ./... # check compilation across tests + relayer / monitoring go code without running | |
- name: Build | |
run: go build -v ./pkg/... | |
- name: Test | |
run: go test ./pkg/... -v -tags integration -covermode=atomic -coverpkg=./... -coverprofile=integration_coverage.txt | |
- name: Test with the race detector enabled | |
run: go test ./pkg/... -v -race -count=10 -timeout=15m -covermode=atomic -coverpkg=./... -coverprofile=race_coverage.txt | |
- name: Upload Go test results | |
if: always() | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
with: | |
name: go-relay-test-results | |
path: | | |
./race_coverage.txt | |
./integration_coverage.txt |