25 lines
667 B
YAML
25 lines
667 B
YAML
![]() |
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
branches: [main]
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: docker
|
||
|
steps:
|
||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||
|
- uses: ./.forgejo/setup-rust
|
||
|
- run: rustup target add wasm32-unknown-unknown
|
||
|
- run: cargo install trunk
|
||
|
- run: cd app-proto; trunk build
|
||
|
test:
|
||
|
runs-on: docker
|
||
|
steps:
|
||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||
|
- uses: ./.forgejo/setup-rust
|
||
|
- run: cd app-proto; cargo test
|
||
|
run-examples:
|
||
|
runs-on: docker
|
||
|
steps:
|
||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||
|
- uses: ./.forgejo/setup-rust
|
||
|
- uses: ./.forgejo/run-examples
|