-
-
Notifications
You must be signed in to change notification settings - Fork 196
39 lines (32 loc) · 940 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
ci-step:
strategy:
fail-fast: false
matrix:
target: ['ci:build', 'ci:test', 'ci:lint', 'ci:e2e', 'build docs']
runs-on: ubuntu-latest
name: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/step-setup
- name: Run ${{ matrix.target }}
run: npm run ${{ matrix.target }}
shell: bash
commitlint:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/step-setup
- name: Validate PR commits with commitlint
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose