Skip to content

merge: regenerate Cargo.lock for dependency update #126

merge: regenerate Cargo.lock for dependency update

merge: regenerate Cargo.lock for dependency update #126

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
NODE_VERSION: '20'
jobs:
lint:
name: Lint & Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
- run: npm ci --workspaces
- run: npm run format --workspace=api && npm run format --workspace=oracle
- run: npm run lint --workspace=api && npm run lint --workspace=oracle
typecheck:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
- run: npm ci --workspaces
- run: npm run typecheck --workspace=api && npm run typecheck --workspace=oracle
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('package-lock.json') }}
- run: npm ci --workspaces
- run: npm run test --workspace=api && npm run test --workspace=oracle
e2e:
name: E2E Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: tests/e2e
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v4
with:
path: tests/e2e/node_modules
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-e2e-${{ hashFiles('tests/e2e/package-lock.json') }}
- run: npm ci
- run: npm run test:report
- name: Upload E2E test report
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-test-report
path: tests/e2e/e2e-report.json
retention-days: 30