Adds GitHub actions to build and test the Rust version of Forget on every commit to main. I didn't enable this on PRs for now just to avoid slowing down other folks, this seemed like a reasonable compromise while we're still in the experimentation phase. I test locally, and CI will catch if I or anyone else slips up.
22 lines
361 B
YAML
22 lines
361 B
YAML
name: Forget (Rust)
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
working-directory: forget
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
working-directory: forget
|