Skip to content

Commit 7d2bac6

Browse files
committed
Update workflow
1 parent 9f33972 commit 7d2bac6

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
name: Main workflow
22

33
on:
4-
- push
5-
- workflow_dispatch
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
612

713
jobs:
814
build:
915
strategy:
10-
fail-fast: false
1116
matrix:
1217
os:
1318
- ubuntu-latest
@@ -27,8 +32,14 @@ jobs:
2732
with:
2833
ocaml-compiler: ${{ matrix.ocaml-compiler }}
2934

30-
- run: opam pin . --no-action
31-
- run: opam depext conf-protoc --yes --with-doc --with-test
32-
- run: opam install . --deps-only --with-doc --with-test
33-
- run: opam exec -- dune build
34-
- run: opam exec -- dune runtest
35+
- name: Install system dependencies
36+
run: opam install conf-protoc --yes
37+
38+
- name: Install opam dependencies
39+
run: opam install . --deps-only --with-doc --with-test --yes
40+
41+
- name: Build
42+
run: opam exec -- dune build
43+
44+
- name: Run tests
45+
run: opam exec -- dune runtest

0 commit comments

Comments
 (0)