Skip to content

Commit f47cae3

Browse files
author
BSKY
committed
Add check formatting step to test.yml
1 parent 1c5586a commit f47cae3

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

.github/workflows/test.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,40 @@
11
name: Test ocaml-action
22

33
on:
4-
push:
5-
branches:
6-
- "master"
7-
- "releases/*"
8-
pull_request:
4+
- push
5+
- pull_request
96

107
jobs:
118
test:
129
strategy:
1310
fail-fast: false
1411
matrix:
15-
os: [ubuntu-latest, macos-latest, windows-latest]
16-
ocaml-version: ["4.08.1", "4.05.0"]
12+
os:
13+
- macos-latest
14+
- ubuntu-latest
15+
- windows-latest
16+
node-version:
17+
- 13.x
18+
ocaml-version:
19+
- 4.08.1
20+
- 4.05.0
1721

1822
runs-on: ${{ matrix.os }}
1923

2024
steps:
2125
- name: Checkout code
22-
uses: actions/checkout@v2
26+
uses: actions/[email protected]
27+
28+
- name: Use Node.js ${{ matrix.node-version }}
29+
uses: actions/[email protected]
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
33+
- name: Install npm packages
34+
run: yarn --frozen-lockfile
35+
36+
- name: Check formatting
37+
run: yarn fmt:check
2338

2439
- name: Use OCaml ${{ matrix.ocaml-version }}
2540
uses: ./

0 commit comments

Comments
 (0)