Skip to content

Merge pull request #1136 from morpho-org/hermes/pin-github-actions-sh… #2417

Merge pull request #1136 from morpho-org/hermes/pin-github-actions-sh…

Merge pull request #1136 from morpho-org/hermes/pin-github-actions-sh… #2417

Workflow file for this run

name: Test Suite Validation
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: JSON Schema Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "20"
cache: yarn
- name: Install dependencies
working-directory: ./test
run: yarn --frozen-lockfile
- name: Run validation tests
working-directory: ./test
run: yarn test
chainalysis:
name: Chainalysis Validation
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment: production
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "20"
cache: yarn
- name: Install dependencies
working-directory: ./test
run: yarn --frozen-lockfile
- name: Run Chainalysis tests
working-directory: ./test
env:
CHAINALYSIS_API_TOKEN: ${{ secrets.CHAINALYSIS_API_TOKEN }}
run: yarn test:chainalysis