Skip to content

Commit f313c84

Browse files
committed
ci: separate job for commitlint using project dependencies
1 parent 0ca5333 commit f313c84

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/build.yml

+17-8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ name: exist-db CI
88
on: [push]
99

1010
jobs:
11+
commitlint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '22'
18+
- run: npm install
19+
# Run the commitlint action, considering its own dependencies and yours as well 🚀
20+
# `github.workspace` is the path to your repository.
21+
- uses: wagoid/commitlint-github-action@v6
22+
env:
23+
NODE_PATH: ${{ github.workspace }}/node_modules
1124
build:
1225
runs-on: ubuntu-latest
1326
strategy:
@@ -73,20 +86,16 @@ jobs:
7386
do sleep 2s; \
7487
done
7588
76-
# Test
89+
# Test
7790
- name: Run smoke test
7891
run: bats --tap tests/bats/*.bats
79-
80-
# TODO: add further tests
81-
82-
# Lint commit messages
83-
- name: lint commit message
84-
uses: wagoid/commitlint-github-action@v6
8592

8693
release:
8794
name: Release
8895
runs-on: ubuntu-latest
89-
needs: build
96+
needs:
97+
- commitlint
98+
- build
9099
if: github.ref == 'refs/heads/master'
91100
steps:
92101
- name: Checkout

0 commit comments

Comments
 (0)