Skip to content

Showdown Function Test #318

Showdown Function Test

Showdown Function Test #318

Workflow file for this run

name: Contracts CI
on:
push:
branches:
- main
- "**"
paths:
- "**"
- "**"
pull_request:
branches:
- main
- "**"
paths:
- "**"
- "**"
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Checkout code
uses: actions/checkout@v3
- name: Install asdf
uses: asdf-vm/actions/setup@v2
- name: Install plugins
run: |
asdf plugin add scarb
asdf install scarb 2.10.1
asdf global scarb 2.10.1
asdf plugin add dojo https://github.com/dojoengine/asdf-dojo
asdf install dojo 1.5.0
asdf global dojo 1.5.0
asdf plugin add starknet-foundry
asdf install starknet-foundry 0.39.0
asdf global starknet-foundry 0.39.0
- name: Build contracts
run: |
cd poker-texas-hold-em/contract
sozo build
- name: Run tests
run: |
cd poker-texas-hold-em/contract
sozo test
- name: Check formatting
run: |
cd poker-texas-hold-em/contract
scarb fmt --check
- name: Tokens
run: |
cd poker-texas-hold-em/tokens
scarb build
snforge test
scarb fmt --check