Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions #336

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
43 changes: 28 additions & 15 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Main workflow

on:
pull_request:
push:
pull_request:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
Expand All @@ -15,35 +15,48 @@ 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
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

- run: opam exec -- make build

- run: opam exec -- make test

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

- uses: ocaml/setup-ocaml/lint-opam@v2
14 changes: 8 additions & 6 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"\| open Tyxml;
"\| let to_reason = <a href=\"reasonml.github.io/\"> \"Reason!\" </a>
"\| ```
"\|
"\| The TyXML JSX allow to write TyXML documents with reason's JSX syntax.
"\|
"\| The TyXML JSX allow to write TyXML documents with reason's JSX syntax.
"\| It works with textual trees, virtual DOM trees, or any TyXML module.
)
(depends
Expand All @@ -35,13 +35,13 @@
(package
(name tyxml-ppx)
(synopsis "PPX to write TyXML documents with the HTML syntax")
(description
(description
"\| ```ocaml
"\| open Tyxml
"\| let%html to_ocaml = \"<a href='ocaml.org'>OCaml!</a>\"
"\| ```
"\|
"\| The TyXML PPX allow to write TyXML documents using the traditional HTML syntax.
"\|
"\| The TyXML PPX allow to write TyXML documents using the traditional HTML syntax.
"\| It works with textual trees, virtual DOM trees, or any TyXML module.
)
(depends
Expand All @@ -53,7 +53,9 @@
(markup
(>= 0.7.2))
(ppxlib
(>= 0.18))))
(>= 0.18))
(re
(>= 1.5.0))))

(package
(name tyxml-syntax)
Expand Down
4 changes: 2 additions & 2 deletions tyxml-jsx.opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ description: """
open Tyxml;
let to_reason = <a href="reasonml.github.io/"> "Reason!" </a>
```
The TyXML JSX allow to write TyXML documents with reason's JSX syntax.

The TyXML JSX allow to write TyXML documents with reason's JSX syntax.
It works with textual trees, virtual DOM trees, or any TyXML module.
"""
maintainer: ["dev@ocsigen.org"]
Expand Down
5 changes: 3 additions & 2 deletions tyxml-ppx.opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ description: """
open Tyxml
let%html to_ocaml = "<a href='ocaml.org'>OCaml!</a>"
```
The TyXML PPX allow to write TyXML documents using the traditional HTML syntax.

The TyXML PPX allow to write TyXML documents using the traditional HTML syntax.
It works with textual trees, virtual DOM trees, or any TyXML module.
"""
maintainer: ["dev@ocsigen.org"]
Expand All @@ -24,6 +24,7 @@ depends: [
"alcotest" {with-test}
"markup" {>= "0.7.2"}
"ppxlib" {>= "0.18"}
"re" {>= "1.5.0"}
"odoc" {with-doc}
]
build: [
Expand Down
2 changes: 1 addition & 1 deletion tyxml-syntax.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: "https://ocsigen.org/tyxml/latest/manual/intro"
bug-reports: "https://github.com/ocsigen/tyxml/issues"
depends: [
"dune" {>= "2.7"}
"ocaml" {>= "4.04"}
"ocaml" {>= "4.03"}
"alcotest" {with-test}
"ppxlib" {>= "0.18"}
"re" {>= "1.5.0"}
Expand Down
2 changes: 1 addition & 1 deletion tyxml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ doc: "https://ocsigen.org/tyxml/latest/manual/intro"
bug-reports: "https://github.com/ocsigen/tyxml/issues"
depends: [
"dune" {>= "2.7"}
"ocaml" {>= "4.04"}
"ocaml" {>= "4.03"}
"alcotest" {with-test}
"re" {>= "1.5.0"}
"seq"
Expand Down
Loading