Skip to content

Initial CI workflow

Initial CI workflow #3

Workflow file for this run

name: Build
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: minafoundation-default-runners
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- uses: dprint/[email protected]
- name: ✅ Format
run: cargo fmt --all -- --check
- name: 🔍 Lint
run: cargo clippy --all-targets --all-features -- -D warnings
- name: 🛠️ Build
run: |
if [[ ${{ github.ref }} == "refs/heads/main" ]] || [[ "${{ github.ref }}" == refs/tags/* ]]; then
cargo build --verbose --release
else
cargo build --verbose
fi
# - name: 🧪 Test
# run: cargo test --verbose