Merge pull request #30 from pixelaw/fix/cleanup #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-contracts | |
on: | |
push: | |
branches: [master] | |
paths: | |
- "src/**" | |
pull_request: | |
branches: [master] | |
paths: | |
- "src/**" | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_VERSION: 1.80.1 | |
jobs: | |
cairofmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: software-mansion/setup-scarb@v1 | |
with: | |
scarb-version: "2.7.0" | |
- run: | | |
scarb fmt --check | |
core-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: asdf-vm/actions/setup@v3 | |
- run: | | |
asdf plugin add dojo https://github.com/dojoengine/asdf-dojo | |
asdf install dojo 1.0.0-alpha.11 | |
asdf global dojo 1.0.0-alpha.11 | |
sozo test |