diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52029992..37107bf0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -114,5 +114,29 @@ jobs: working-directory: ./frontend run: npm test --if-present -# Workflow run retention settings -retention-days: 30 \ No newline at end of file + backend-tests: + name: Backend tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + cache-dependency-path: backend/package-lock.json + - name: Install backend dependencies + working-directory: ./backend + run: npm ci + - name: Run backend tests + working-directory: ./backend + run: npm test -- --runInBand + + contract-tests: + name: Contract tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install pinned Rust toolchain + run: rustup toolchain install 1.89.0 --profile minimal + - name: Run contract tests + run: cargo +1.89.0 test --workspace \ No newline at end of file