diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 927e38546b..0c9afe9654 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -154,38 +154,4 @@ jobs: branch: wikidoc folder: doc-dev clean: true - target-folder: doc/dev/ - - 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: "5.2" - dune-cache: true - - uses: ocaml/setup-ocaml/lint-opam@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: "5.2" - dune-cache: true - - uses: ocaml/setup-ocaml/lint-fmt@v3 - - lint-runtime: - runs-on: ubuntu-latest - steps: - - name: Checkout tree - uses: actions/checkout@v4 - - name: Set-up Biome - uses: biomejs/setup-biome@v2 - - name: Run biome - run: biome ci + target-folder: doc/dev/ \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..e912e7b979 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,42 @@ +name: lint + +on: + pull_request: + push: + branches: + - master + +jobs: + 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: "5.2" + dune-cache: true + - uses: ocaml/setup-ocaml/lint-opam@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: "5.2" + dune-cache: true + - uses: ocaml/setup-ocaml/lint-fmt@v3 + + lint-runtime: + runs-on: ubuntu-latest + steps: + - name: Checkout tree + uses: actions/checkout@v4 + - name: Set-up Biome + uses: biomejs/setup-biome@v2 + - name: Run biome + run: biome ci