Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI tests #482

Merged
merged 7 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 8 additions & 33 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Continuous Integration
on: [push, pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
test:
Expand All @@ -11,7 +15,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: ["14", "16", "18"]
node-version: ["16", "18", "20"]

steps:
- name: Checkout project
Expand Down Expand Up @@ -39,8 +43,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
# Pinning to 18.15 and dropped 20 due to https://github.com/NomicFoundation/hardhat/issues/3877
node-version: ["16", "18.15.0"]
node-version: ["16", "18", "20"]

steps:
- name: Checkout project
Expand All @@ -64,34 +67,6 @@ jobs:
working-directory: smart_contract_tests
run: npm test

testv12:
name: Testv12
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: ["12"]

steps:
- name: Checkout project
uses: actions/checkout@v2

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run testv12

test-browser:
name: Test browser
runs-on: ${{ matrix.os }}
Expand All @@ -101,7 +76,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: ["18"]
node-version: ["18", "20"]

steps:
- name: Checkout project
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/tutorial.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Check snarkjs tutorial

on: [push, pull_request]
on:
push:
branches:
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x]
node-version: ["16", "18", "20"]

steps:
- uses: actions/checkout@v2
Expand Down
Loading
Loading