forked from keep-starknet-strange/alexandria
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.65 KB
/
test.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: test
on: [push, pull_request]
env:
CAIRO_COMPILER_VERSION: v1.0.0-rc0
ARCHIVE_LINK: https://github.com/starkware-libs/cairo/releases/download/v1.0.0-rc0/release-x86_64-unknown-linux-musl.tar.gz
ARCHIVE_NAME: cairo.zip
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3
- name: Step 2 - Downloading binaries
run: curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK
- name: Step 3 - Unzipping binaries
run: tar -xvf $ARCHIVE_NAME
- name: Step 4 - Make binaries available
run: echo "./cairo/bin" >> $GITHUB_PATH
- name: Step 5 - Trying to build
run: make build
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3
- name: Step 2 - Downloading binaries
run: curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK
- name: Step 3 - Unzipping binaries
run: tar -xvf $ARCHIVE_NAME
- name: Step 4 - Make binaries available
run: echo "./cairo/bin" >> $GITHUB_PATH
- name: Step 5 - Running tests
run: make test
check-format:
name: check-format
runs-on: ubuntu-latest
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3
- name: Step 2 - Downloading binaries
run: curl -L -o $ARCHIVE_NAME $ARCHIVE_LINK
- name: Step 3 - Unzipping binaries
run: tar -xvf $ARCHIVE_NAME
- name: Step 4 - Make binaries available
run: echo "./cairo/bin" >> $GITHUB_PATH
- name: Step 5 - Checking formatting
run: make check-format