feat: add ledger #431
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: Test Frontend | ||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
types: [opened, synchronize] | ||
jobs: | ||
Test_Lint: | ||
name: Test Lint | ||
runs-on: ubuntu-latest | ||
working-directory: ./frontend | ||
Check failure on line 14 in .github/workflows/test-frontend.yaml GitHub Actions / Test FrontendInvalid workflow file
|
||
steps: | ||
- name: Check out codebase | ||
uses: actions/checkout@v4 | ||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
- name: Install node packages | ||
run: npm ci | ||
- name: Run lint tests | ||
run: npm run test:lint | ||
Test_Format: | ||
name: Test Format | ||
runs-on: ubuntu-latest | ||
working-directory: ./frontend | ||
steps: | ||
- name: Check out codebase | ||
uses: actions/checkout@v4 | ||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
- name: Install node packages | ||
run: npm ci | ||
- name: Run format checks | ||
run: npm run test:format | ||
Check_Types: | ||
name: Check Types | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out codebase | ||
uses: actions/checkout@v4 | ||
- name: Install node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
- name: Install node packages | ||
run: npm ci | ||
- name: Build staking package | ||
run: npm run -w staking build | ||
- name: Install node packages for frontend | ||
working-directory: ./frontend | ||
run: npm ci | ||
- name: Check typescript types | ||
working-directory: ./frontend | ||
run: npm run -w frontend test:types | ||
Test_Nix: | ||
name: Test (nix) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out codebase | ||
uses: actions/checkout@v4 | ||
- name: Install nix | ||
uses: cachix/install-nix-action@v26 | ||
with: | ||
nix_path: nixpkgs=channel:nixpkgs-unstable | ||
- name: Install node packages | ||
run: nix-shell --run "cli install" | ||
- name: Build staking package | ||
run: nix-shell --run "npm run -w staking build" | ||
- name: Test | ||
run: nix-shell --run "cli test" |