Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

chore(ci): Add trusted publishing #200

chore(ci): Add trusted publishing

chore(ci): Add trusted publishing #200

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18.x
registry-url: https://registry.npmjs.org
- id: yarn-cache
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
# This is required separately from yarn test because it generates the typechain definitions
- name: Compile
run: yarn compile
- name: Run unit tests
run: yarn test
env: # Or as an environment variable
ARCHIVE_RPC_URL: ${{ secrets.ARCHIVE_RPC_URL }}