Do not throw an error even if the .ocamlformat
is not found
#3806
Workflow file for this run
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: Builds, tests & co | |
on: | |
pull_request: | |
push: | |
schedule: | |
# Prime the caches every Monday | |
- cron: 0 1 * * MON | |
permissions: read-all | |
jobs: | |
hygiene: | |
name: Hygiene | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout tree | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set-up Node.js | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: latest | |
- run: corepack enable | |
- run: pnpm install --frozen-lockfile | |
- if: always() | |
run: pnpm lint | |
- if: always() | |
run: pnpm typecheck | |
- name: Ensure dist directory is up-to-date | |
if: always() | |
run: pnpm build && git diff --exit-code --ignore-cr-at-eol | |
test: | |
name: Test | |
needs: hygiene | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
ocaml-compiler: | |
- "5.2" | |
include: | |
- os: ubuntu-latest | |
ocaml-compiler: ocaml-variants.5.2.0+options,ocaml-option-flambda | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout tree | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set-up OCaml ${{ matrix.ocaml-compiler }} | |
uses: ./ | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
- run: opam install uri |