20 lines
No EOL
492 B
YAML
20 lines
No EOL
492 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
|
|
source . $HOME/.cargo/env
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
- name: Run tests
|
|
run: cargo test --verbose |