From 0bad9ab056ffe3cedb8a49e5bd557a641e5d2b8d Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Wed, 1 May 2024 03:13:26 +0900 Subject: [PATCH] Update GitHub Actions Signed-off-by: Sora Morimoto --- .github/dependabot.yml | 6 ++++ .github/workflows/workflow.yml | 57 +++++++++++++++++++++++++--------- 2 files changed, 48 insertions(+), 15 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..ca79ca5b4 --- /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 76030c564..2a6ab113f 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,8 +1,8 @@ name: Main workflow on: - pull_request: push: + pull_request: schedule: # Prime the caches every Monday - cron: 0 1 * * MON @@ -15,31 +15,30 @@ jobs: os: - ubuntu-latest ocaml-compiler: - - 4.04.x - - 4.05.x - - 4.11.x - - 4.13.x - - 4.14.x - - 5.0.x - - 5.1.x + - "4.04" + - "4.05" + - "4.11" + - "4.13" + - "4.14" + - "5.0" + - "5.1" include: - os: macos-latest - ocaml-compiler: 4.14.x + ocaml-compiler: "4.14" - os: windows-latest - ocaml-compiler: 4.14.x - - os: macos-latest - ocaml-compiler: 5.1.x + 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 opam-depext-flags: --with-test - run: opam install . --deps-only --with-test @@ -47,3 +46,31 @@ jobs: - run: opam exec -- make build - run: opam exec -- make test + + 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-opam: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Use OCaml 4.14.x + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: "4.14" + allow-prerelease-opam: true + + - uses: ocaml/setup-ocaml/lint-opam@v2