Skip to content

Commit cbe86e3

Browse files
authored
Merge pull request #177 from smorimoto/update-actions
Update GitHub Actions
2 parents 8d6da91 + 7c2742d commit cbe86e3

File tree

3 files changed

+34
-41
lines changed

3 files changed

+34
-41
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly

.github/workflows/test.yml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Main workflow
1+
name: Builds, tests & co
22

33
on:
4-
- pull_request
54
- push
5+
- pull_request
6+
7+
permissions: read-all
68

79
jobs:
810
build:
@@ -11,33 +13,33 @@ jobs:
1113
matrix:
1214
os:
1315
- macos-latest
16+
- ubuntu-latest
17+
# - windows-latest
1418
ocaml-compiler:
15-
- 5.0
16-
- 4.14.1
17-
- 4.13.1
18-
- 4.08.1
19-
19+
- 5
20+
- 4
21+
include:
22+
- os: ubuntu-latest
23+
ocaml-compiler: "4.08"
2024
runs-on: ${{ matrix.os }}
21-
2225
steps:
23-
- name: Checkout code
24-
uses: actions/checkout@v3
25-
- name: Use OCaml ${{ matrix.ocaml-compiler }}
26-
uses: ocaml/setup-ocaml@v2
26+
- name: Checkout tree
27+
uses: actions/checkout@v4
28+
- name: Set-up OCaml
29+
uses: ocaml/setup-ocaml@v3
2730
with:
2831
ocaml-compiler: ${{ matrix.ocaml-compiler }}
29-
- name: Install dependencies
30-
run: |
31-
opam install . --deps-only --with-test
32+
- run: opam install . --deps-only --with-test
33+
- run: opam exec -- dune build
34+
- run: opam exec -- dune runtest
3235

33-
- name: Build
34-
run: |
35-
opam exec -- dune build
36-
37-
- name: Tests
38-
run: |
39-
opam exec -- dune build @runtest
40-
41-
- name: Opam Lint
42-
run: |
43-
opam lint uri.opam uri-re.opam uri-sexp.opam uri-bench.opam
36+
lint-opam:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout tree
40+
uses: actions/checkout@v4
41+
- name: Set-up OCaml
42+
uses: ocaml/setup-ocaml@v3
43+
with:
44+
ocaml-compiler: 5
45+
- uses: ocaml/setup-ocaml/lint-opam@v3

appveyor.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)