Skip to content
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:
branches: [master]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Run push CI on the actual default branch

This repo's mainline branch is main (git branch -a shows main and no master), so restricting push events to master means the new build/test workflow will not run after PRs merge or on direct pushes to the branch that is actually used. Please target main here, or include both branch names if master is still needed somewhere.

Useful? React with 👍 / 👎.

pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
test:
name: build & test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --locked --verbose
- name: Test
run: cargo test --locked --verbose
Loading