Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
koonwen committed Feb 7, 2025
1 parent a4f1ae5 commit 3f022a4
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 117 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Builds, tests, lints

on:
- push
- pull_request

permissions: read-all

jobs:
build:
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
ocaml-version:
- 4.14

runs-on: ${{ matrix.os }}

steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build

- run: opam exec -- dune runtest

lint-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
- uses: ocaml/setup-ocaml/lint-doc@v3

lint-fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
- uses: ocaml/setup-ocaml/lint-fmt@v3

lint-opam:
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
- uses: ocaml/setup-ocaml/lint-opam@v3
38 changes: 0 additions & 38 deletions .github/workflows/build-test.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/lint.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/opam-dependency-submission.yml

This file was deleted.

0 comments on commit 3f022a4

Please sign in to comment.