Skip to content

Commit

Permalink
chore: add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Mar 13, 2024
1 parent 9b2b824 commit cd57114
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cairo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on: [push, pull_request]

permissions: read-all

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
- name: Check cairo format
run: scarb fmt --check
working-directory: onchain
- name: Build cairo programs
run: scarb build
working-directory: onchain
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
- name: Run cairo tests
run: scarb test
working-directory: onchain

0 comments on commit cd57114

Please sign in to comment.