dyna3/.forgejo/workflows/continuous-integration.yaml

48 lines
1.2 KiB
YAML
Raw Normal View History

on:
pull_request:
push:
branches: [main]
jobs:
# build the application, reporting success if the build completes
build:
runs-on: docker
container:
image: dyna3:ci
defaults:
run:
working-directory: app-proto
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- run: trunk build
# run the automated tests, reporting success if the tests pass
test:
runs-on: docker
container:
image: dyna3:ci
defaults:
run:
working-directory: app-proto
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- run: 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
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: cargo run --example irisawa-hexlet
- run: cargo run --example three-spheres
- run: cargo run --example point-on-sphere
- run: cargo run --example kaleidocycle