Skip to content

feat: add starknet-devnet scripts as a nix pkg and app #3228

feat: add starknet-devnet scripts as a nix pkg and app

feat: add starknet-devnet scripts as a nix pkg and app #3228

Workflow file for this run

name: Relayer
on:
push:
branches:
- develop
- main
pull_request:
jobs:
relayer_run_unit_tests:
name: Run Unit Tests ${{ matrix.test-type.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test-type:
- name: test-unit-go
id: unit
- name: test-unit-go-race
id: race
- name: test-integration-go
id: integration
steps:
- name: Collect Metrics
if: matrix.test-type.id != 'race'
id: collect-gha-metrics
uses: smartcontractkit/push-gha-metrics-action@d9da21a2747016b3e13de58c7d4115a3d5c97935 # v3.0.1
with:
id: starknet-relay-unit-${{ matrix.test-type.id }}
org-id: ${{ secrets.GRAFANA_INTERNAL_TENANT_ID }}
basic-auth: ${{ secrets.GRAFANA_INTERNAL_BASIC_AUTH }}
hostname: ${{ secrets.GRAFANA_INTERNAL_HOST }}
this-job-name: Run Unit Tests ${{ matrix.test-type.name }}
test-results-file: '{"testType":"go","filePath":"/tmp/gotest.log"}'
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install Nix
uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build
run: nix develop -c sh -c "make build-go-relayer"
- name: Run ${{ matrix.test-type.name }}
run: nix develop -c sh -c "make ${{ matrix.test-type.name }} LOG_PATH=/tmp/gotest.log"
- name: Upload Golangci relayer results
if: always()
uses: actions/upload-artifact@v4
with:
name: go-unit-tests-results-${{ matrix.test-type.id }}
path: |
/tmp/gotest.log
./relayer/output.txt
./relayer/coverage.txt
./relayer/race_coverage.txt