Skip to content

modular file structure for smart contracts templates #24

modular file structure for smart contracts templates

modular file structure for smart contracts templates #24

Workflow file for this run

name: Build Contract
on:
push:
branches: ['**']
env:
SINGLE_TOKEN: "--manifest-path=contracts/src/token/single-token/Cargo.toml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: ${{ env.SINGLE_TOKEN }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ env.SINGLE_TOKEN }}
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ env.SINGLE_TOKEN }}