P-976 replicate contracts tests infrastructure for idhub #21
Workflow file for this run
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: General CI | |
on: | |
push: | |
branches: | |
- dev | |
paths-ignore: | |
- "**/README.md" | |
pull_request: | |
branches: | |
- dev | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
set-env: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
fmt: | |
runs-on: ubuntu-latest | |
needs: | |
- set-env | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install deps | |
run: | | |
corepack enable && corepack enable pnpm && pnpm install --frozen-lockfile | |
- name: Fmt check | |
run: | | |
pnpm run check-format | |
contracts-uint-tests: | |
runs-on: ubuntu-latest | |
needs: | |
- set-env | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run contracts unit tests | |
run: | | |
npx hardhat test | |
integration-tests: | |
runs-on: ubuntu-latest | |
needs: | |
- set-env | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Pull litentry image optionally | |
run: | | |
docker pull litentry/identity-worker:latest | |
docker pull litentry/identity-cli:latest | |
docker pull litentry/litentry-chain-aio:latest | |
- run: docker images --all | |
- name: Start parachain | |
run: | | |
./scripts/run_parachain_worker.sh | |
docker ps | |