dyna3/.forgejo/workflows/continuous-integration.yaml
Aaron Fenyes 71f4cd184c
Some checks failed
/ build (pull_request) Failing after 1s
/ test (pull_request) Failing after 1s
/ run-examples (pull_request) Failing after 1s
Fail continuous integration on warnings
2025-03-12 15:44:43 -07:00

49 lines
No EOL
1.4 KiB
YAML

on:
pull_request:
push:
branches: [main]
jobs:
# build the application, reporting success if there are no errors or warnings
build:
runs-on: docker
container:
image: dyna3:ci
defaults:
run:
working-directory: app-proto
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- run: RUSTFLAGS='-D warnings' trunk build
# run the automated tests, reporting success if the tests pass and were built
# without warnings
test:
runs-on: docker
container:
image: dyna3:ci
defaults:
run:
working-directory: app-proto
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- run: RUSTFLAGS='-D warnings' cargo test
# run the Cargo examples, as described here:
#
# Karol Kuczmarski. "Add examples to your Rust libraries"
# http://xion.io/post/code/rust-examples.html
#
# report success if the examples build and run without errors or warnings
run-examples:
runs-on: docker
container:
image: dyna3:ci
defaults:
run:
working-directory: app-proto
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- run: RUSTFLAGS='-D warnings' cargo run --example irisawa-hexlet
- run: RUSTFLAGS='-D warnings' cargo run --example three-spheres
- run: RUSTFLAGS='-D warnings' cargo run --example point-on-sphere
- run: RUSTFLAGS='-D warnings' cargo run --example kaleidocycle