rust_app/.forgejo/workflows/main.yml
2025-04-13 00:39:19 -04:00

21 lines
No EOL
509 B
YAML

name: Pipeline main branch
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest # Or other appropriate runner
steps:
- uses: actions/checkout@v4 # Checkout the repository
- name: Install Rust toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Run cargo build
run: |
$HOME/.cargo/bin/cargo build
- name: Run cargo test
run: |
$HOME/.cargo/bin/cargo test