Skip to content

Feature/cd ci config #13

Feature/cd ci config

Feature/cd ci config #13

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 0 * * *" # Run daily at midnight
permissions: read-all
jobs:
test-contracts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: foundry-rs/setup-snfoundry@v3
- uses: software-mansion/setup-scarb@v1
with:
tool-versions: ./apps/snfoundry/.tool-versions
- name: Run tests
run: cd apps/snfoundry && snforge test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: foundry-rs/setup-snfoundry@v3
- uses: software-mansion/setup-scarb@v1
with:
tool-versions: ./apps/snfoundry/.tool-versions
- name: Check formatting
run: cd apps/snfoundry/contracts && scarb fmt --check