-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.1 KB
/
main.yml
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
name: Tests and linter
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
SCARB_VERSION: 2.6.3
SNFORGE_VERSION: 0.21.0
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Scarb
run: |
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | bash -s -- -v ${{ env.SCARB_VERSION }}
- name: Set up Git authentication
run: |
git config --global http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n x-access-token:${{ secrets.GH_PAT }} | base64 --wrap=0)"
- name: Setup Foundry
run: |
curl -L https://raw.githubusercontent.com/foundry-rs/starknet-foundry/master/scripts/install.sh | sh -s -- -v ${{ env.SNFORGE_VERSION }}
snfoundryup -v ${{ env.SNFORGE_VERSION }}
- name: Add Foundry to PATH
run: echo "PATH=/home/runner/.local/bin:$PATH" >> $GITHUB_ENV
- name: Build and test
working-directory: .
run: |
snforge test --max-n-steps 4294967295
scarb build