CI: run on Node.js v20 #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/ISSUE_TEMPLATE/**' | |
push: | |
paths-ignore: | |
- '.github/ISSUE_TEMPLATE/**' | |
branches: | |
- master | |
- pr/**/ci | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
# Try to build all examples | |
- name: Build bakery-backend example | |
run: cargo build --manifest-path bakery-backend/Cargo.toml | |
- name: Build rocket-example | |
run: cargo build --manifest-path rocket-example/Cargo.toml | |
- name: Build graphql-example | |
run: cargo build --manifest-path graphql-example/Cargo.toml | |
# Try to build mdbooks | |
- name: Install mdbook | |
run: (test -x $HOME/.cargo/bin/mdbook || cargo install --debug --vers "^0.4" mdbook) | |
- name: Build tutorials-book mdbook | |
run: mdbook build tutorials-book |