feat(compose_txn): add validation rules for voting key, selection key… #147
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: CI Checks | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '**/*.md' # Do not run checks when only documentation files are changed | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- '**/*.md' # Do not run checks when only documentation files are changed | |
workflow_dispatch: | |
jobs: | |
e2e-test: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Enable Corepack for Yarn | |
run: corepack enable | |
- name: Set up Node cache # Set up Node cache by installing again | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Install browsers for E2E testing | |
run: yarn playwright install --with-deps | |
- name: Run E2E tests | |
run: yarn test:e2e | |
# - uses: actions/upload-artifact@v4 | |
# if: always() | |
# with: | |
# name: playwright-report | |
# path: playwright-report/ | |
# retention-days: 30 | |
unit-test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Enable Corepack for Yarn | |
run: corepack enable | |
- name: Set up Node cache # Set up Node cache by installing again | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Run unit tests | |
run: yarn test:ci | |
lint: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Enable Corepack for Yarn | |
run: corepack enable | |
- name: Set up Node cache # Set up Node cache by installing again | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Run linter | |
run: yarn lint |