-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 906 Bytes
/
test-pr.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
name: Tests
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
test-pr:
if: ${{ !contains(github.head_ref, 'release-please') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install commitlint
run: npm install -g @commitlint/{cli,config-conventional};
- name: Run commitlint
run: commitlint -x $(npm root -g)/@commitlint/config-conventional --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Install Java and Maven
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- name: Run Unit tests
run: mvn clean test