ci: Bump dtolnay/rust-toolchain from f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 to efa25f7f19611383d5b0ccf2d1c8914531636bf9 #3
Workflow file for this run
This file contains hidden or 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
| # SPDX-License-Identifier: PMPL-1.0-or-later | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Set up OCaml | |
| uses: ocaml/setup-ocaml@dec6499fef64fc5d7ed43d43a87251b7b1c306f5 # v3 | |
| with: | |
| ocaml-compiler: "5.1" | |
| - name: Set up Node.js | |
| uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 | |
| with: | |
| node-version: "20" | |
| - name: Install dependencies | |
| run: opam install . --deps-only --with-test --with-doc | |
| - name: Build | |
| run: opam exec -- dune build | |
| - name: Run tests | |
| run: opam exec -- dune runtest | |
| - name: Run codegen WASM tests | |
| run: opam exec -- ./tools/run_codegen_wasm_tests.sh | |
| - name: Check formatting | |
| run: opam exec -- dune build @fmt | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Set up OCaml | |
| uses: ocaml/setup-ocaml@dec6499fef64fc5d7ed43d43a87251b7b1c306f5 # v3 | |
| with: | |
| ocaml-compiler: "5.1" | |
| - name: Install dependencies | |
| run: opam install . --deps-only | |
| - name: Build | |
| run: opam exec -- dune build | |
| - name: Lint with odoc | |
| run: opam exec -- dune build @doc | |
| continue-on-error: true |