From bcef475b35826a974666a010c671178070623b6f Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Wed, 1 May 2024 03:19:33 +0900 Subject: [PATCH] Update GitHub Actions Signed-off-by: Sora Morimoto --- .github/dependabot.yml | 6 +++++ .github/workflows/workflow.yml | 40 ++++++++++++++++++---------------- 2 files changed, 27 insertions(+), 19 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 f1d4019..6d6f55d 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -13,23 +13,27 @@ jobs: fail-fast: false matrix: os: - - macos-latest - ubuntu-latest - - windows-latest ocaml-compiler: - - 4.08.x - - 4.14.x + - "4.08" + - "4.14" + include: + - os: macos-latest + ocaml-compiler: "4.14" + - os: windows-latest + ocaml-compiler: "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 ${{ matrix.ocaml-compiler }} uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} + allow-prerelease-opam: true - run: opam install . --deps-only --with-test @@ -40,17 +44,16 @@ jobs: lint-doc: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Checkout tree + uses: actions/checkout@v4 - - name: Use OCaml 4.14.x + - name: Set-up OCaml uses: ocaml/setup-ocaml@v2 with: - ocaml-compiler: 4.14.x - dune-cache: true + ocaml-compiler: "4.14" + allow-prerelease-opam: true - - name: Lint doc - uses: ocaml/setup-ocaml/lint-doc@v2 + - uses: ocaml/setup-ocaml/lint-doc@v2 lint-opam: runs-on: ubuntu-latest @@ -58,11 +61,10 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Use OCaml 4.14.x + - name: Set-up OCaml 4.14.x uses: ocaml/setup-ocaml@v2 with: - ocaml-compiler: 4.14.x - dune-cache: true + ocaml-compiler: "4.14" + allow-prerelease-opam: true - - name: Lint opam - uses: ocaml/setup-ocaml/lint-opam@v2 + - uses: ocaml/setup-ocaml/lint-opam@v2