Skip to content

Commit

Permalink
test: add ts tests to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
stevennevins committed Oct 17, 2024
1 parent e9bd25c commit 7f40d85
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/offchain-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Offchain Tests

on:
push:
branches:
- master
pull_request:
branches:
- '*'

jobs:
e2e-tests:
name: End-to-End Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run E2E tests
run: npm test
env:
NODE_OPTIONS: ${{ env.NODE_OPTIONS }} --experimental-vm-modules
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config: Config.InitialOptions = {
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
verbose: true,
testTimeout: 60000, // 30 seconds
testTimeout: 60000, // 60 seconds
maxWorkers: 1, // Run tests sequentially
};

Expand Down

0 comments on commit 7f40d85

Please sign in to comment.