From c8f3ac5353c111a4f0c02d78fe4ee0daeb24b63b Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Wed, 1 May 2024 04:44:00 +0900 Subject: [PATCH] Update GitHub Actions (#139) Signed-off-by: Sora Morimoto --- .github/dependabot.yml | 6 ++++ .github/workflows/workflow.yml | 60 ++++++++++++++++++++++------------ 2 files changed, 46 insertions(+), 20 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..ca79ca5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e2ab937..61914b2 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -17,44 +17,64 @@ jobs: - ubuntu-latest - windows-latest ocaml-compiler: - - 4.08.x - - 4.09.x - - 4.10.x - - 4.11.x - - 4.12.x + - "4.12" + - "4.13" + - "4.14" runs-on: ${{ matrix.os }} steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Checkout tree + uses: actions/checkout@v4 - - name: Use OCaml ${{ matrix.ocaml-compiler }} + - name: Set-up OCaml uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} + allow-prerelease-opam: true - run: opam install . --deps-only - run: opam exec -- make all - lint-fmt: - strategy: - matrix: - ocaml-compiler: - - 4.12.x - + lint-doc: runs-on: ubuntu-latest + steps: + - name: Checkout tree + uses: actions/checkout@v4 + + - name: Set-up OCaml + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: "4.14" + allow-prerelease-opam: true + + - uses: ocaml/setup-ocaml/lint-doc@v2 + lint-fmt: + runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Checkout tree + uses: actions/checkout@v4 - - name: Use OCaml ${{ matrix.ocaml-compiler }} + - name: Set-up OCaml uses: ocaml/setup-ocaml@v2 with: - ocaml-compiler: ${{ matrix.ocaml-compiler }} + ocaml-compiler: "4.14" + allow-prerelease-opam: true - - run: opam depext ocamlformat=$(cat .ocamlformat | grep version | cut -d '=' -f 2) --install + - uses: ocaml/setup-ocaml/lint-fmt@v2 + + lint-opam: + runs-on: ubuntu-latest + steps: + - name: Checkout tree + uses: actions/checkout@v4 + + - name: Set-up OCaml + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: "4.14" + allow-prerelease-opam: true - - run: opam exec -- make fmt + - uses: ocaml/setup-ocaml/lint-opam@v2