Skip to content

Merge pull request #70 from smartcontractkit/chore/ci-maintenance #68

Merge pull request #70 from smartcontractkit/chore/ci-maintenance

Merge pull request #70 from smartcontractkit/chore/ci-maintenance #68

Workflow file for this run

name: CI Test
on:
push:
branches:
- main
pull_request:
jobs:
ci-test:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
cache: true
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go
- name: Run Test Suite
run: set -o pipefail && go test ./... -coverpkg=./... -coverprofile=coverage.txt
- name: Run Race Test Suite
run: set -o pipefail && go test -race ./... -coverpkg=./... -coverprofile=race_coverage.txt
- name: Upload Go test results
if: always()
uses: actions/upload-artifact@v4
with:
name: go-test-results
path: |
./coverage.txt
./race_coverage.txt