Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/dojo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Contracts CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
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.9.4
asdf global scarb 2.9.4
asdf plugin add dojo https://github.com/dojoengine/asdf-dojo
asdf install dojo 1.4.0
asdf global dojo 1.4.0
working-directory: flipnet-dojo

- name: Build contracts
run: |
sozo build
working-directory: flipnet-dojo

- name: Run tests
run: |
sozo test
working-directory: flipnet-dojo

- name: Check formatting
run: |
scarb fmt --check
working-directory: flipnet-dojo
23 changes: 23 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run Frontend Tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install --legacy-peer-deps
working-directory: frontend

- name: Run build
run: npm run build
working-directory: frontend
Loading