Skip to content

Commit

Permalink
feat: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eddnewgate committed Jul 28, 2024
1 parent 233d93d commit 932efe9
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: CI
name: Lint and test

on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
pull_request:
permissions: read-all
- main

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

test:
lint_and_test:
name: Lint and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
- uses: foundry-rs/setup-snfoundry@v3
- name: Test cairo contract
run: scarb test
- uses: actions/checkout@v3
- name: Extract scarb version
run: |
SCARB_VERSION=$(grep 'scarb-version = ' Scarb.toml | sed 's/scarb-version = "\(.*\)"/\1/')
echo "SCARB_VERSION=$SCARB_VERSION" >> $GITHUB_ENV
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: ${{ env.SCARB_VERSION }}
- name: Cairo lint
run: scarb fmt --check
- name: Cairo test
run: scarb test

0 comments on commit 932efe9

Please sign in to comment.