Skip to content

[#6] deploying contracts from fund manager #2

[#6] deploying contracts from fund manager

[#6] deploying contracts from fund manager #2

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:
- 'src/**'
- name: Install scarb
if: steps.changes.outputs.contracts_dir == 'true'
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh
- name: Run scarb fmt
if: steps.changes.outputs.contracts_dir == 'true'
run: 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:
- 'src/**'
- name: Install scarb
if: steps.changes.outputs.contracts_dir == 'true'
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh
- name: Run scarb check
if: steps.changes.outputs.contracts_dir == 'true'
run: scarb check