36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: Starknet contract
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- target_chains/starknet/contracts/**
|
|
push:
|
|
paths:
|
|
- target_chains/starknet/contracts/**
|
|
jobs:
|
|
check:
|
|
name: Starknet Foundry tests
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: target_chains/starknet/contracts/
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Scarb
|
|
uses: software-mansion/setup-scarb@v1
|
|
with:
|
|
tool-versions: target_chains/starknet/contracts/.tool-versions
|
|
- name: Install Starknet Foundry
|
|
uses: foundry-rs/setup-snfoundry@v3
|
|
with:
|
|
tool-versions: target_chains/starknet/contracts/.tool-versions
|
|
- name: Install Starkli
|
|
run: curl https://get.starkli.sh | sh && . ~/.config/.starkli/env && starkliup -v 0.2.8
|
|
- name: Install Katana
|
|
run: curl -L https://install.dojoengine.org | bash && PATH="$PATH:$HOME/.config/.dojo/bin" dojoup -v 0.6.0
|
|
- name: Check formatting
|
|
run: scarb fmt --check
|
|
- name: Run tests
|
|
run: snforge test
|
|
- name: Test local deployment script
|
|
run: PATH="$PATH:$HOME/.config/.dojo/bin" katana & . ~/.config/.starkli/env && deploy/local_deploy
|