Skip to content

Commit e7383f0

Browse files
ci: add PR CI
1 parent 7d2d010 commit e7383f0

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Pull Request Integration
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: foundry-rs/setup-snfoundry@v3
15+
with:
16+
starknet-foundry-version: "0.49.0"
17+
- uses: software-mansion/setup-scarb@v1
18+
with:
19+
scarb-version: "2.12.2"
20+
21+
- name: Install cairo-coverage
22+
run: |
23+
curl -L https://raw.githubusercontent.com/software-mansion/cairo-coverage/main/scripts/install.sh | sh
24+
25+
- name: Run test and coverage
26+
run: scarb test -w --coverage
27+
28+
- uses: codecov/codecov-action@v5.3.1
29+
with:
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
files: packages/utils/coverage/coverage.lcov
32+
fail_ci_if_error: true
33+
34+
- name: Check formatting
35+
run: |
36+
scarb fmt -w --check

0 commit comments

Comments
 (0)