forked from Open-Captable-Protocol/ocp
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.43 KB
/
integrate.yaml
File metadata and controls
48 lines (40 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Integration Tests
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- "*"
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
# Install only ESLint dependencies
- name: Install ESLint Dependencies
run: |
yarn add -D @eslint/js@latest \
@typescript-eslint/eslint-plugin@latest \
@typescript-eslint/parser@latest \
eslint-plugin-import@latest \
globals@latest
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
cache: true
cache-key: ${{ github.job }}-${{ github.sha }}
- name: Run Forge Install Script
run: |
chmod +x setup.sh && ./setup.sh
# Run all tests and checks
- name: Run Forge Tests
run: cd chain && forge test --summary
- name: Run ESLint
run: npx eslint "src/**/*.{js,ts,mjs,mts}"
- name: Check Formatting
run: npx prettier --check "src/**/*.{js,mjs,ts,mts,json,md}"