Skip to content

Merge pull request #58 from web3wagers/dev #42

Merge pull request #58 from web3wagers/dev

Merge pull request #58 from web3wagers/dev #42

name: CI
on:
pull_request:
jobs:
check-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check for changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
contracts_dir:
- 'contracts/src/**'
- name: Install scarb
if: steps.changes.outputs.contracts_dir == 'true'
run: |
cd contracts
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 2.6.5
- name: Run scarb fmt
if: steps.changes.outputs.contracts_dir == 'true'
run: |
cd contracts
scarb fmt
check-contracts-changes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check for changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
contracts_dir:
- 'contracts/src/**'
- name: Install scarb
if: steps.changes.outputs.contracts_dir == 'true'
run: |
cd contracts
curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v 2.6.5
- name: Run scarb check
if: steps.changes.outputs.contracts_dir == 'true'
run: |
cd contracts
scarb check