2021-10-14 12:54:43 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2024-01-24 10:35:48 +00:00
|
|
|
formatting:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
- run: npm install
|
|
|
|
- run: npm run format:check
|
|
|
|
|
2021-10-14 12:54:43 +00:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-25 19:00:56 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-05-30 14:23:23 +00:00
|
|
|
# workaround for https://github.com/NomicFoundation/hardhat/issues/3877
|
2023-05-25 19:00:56 +00:00
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-05-30 14:23:23 +00:00
|
|
|
node-version: 18.15
|
2023-05-25 19:00:56 +00:00
|
|
|
- run: npm install
|
|
|
|
- run: npm test
|
2023-01-30 13:35:14 +00:00
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: fuzzing/corpus
|
|
|
|
key: fuzzing
|
|
|
|
- run: npm run fuzz
|