Skip to content

Commit 36c95e3

Browse files
committed
ci: validate the build on every push and pull request
Runs mvn verify on push to main and on pull requests, so a broken build is caught here rather than only when a v* tag fires the publish pipeline. Uses verify (not test) because the cli integration tests need the daemon's packaged fat jar.
1 parent 6ef9ee6 commit 36c95e3

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
# Builds and runs the full test suite on every push and pull request, so a
4+
# broken build is caught here — before a v* tag fires the publish pipeline.
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: temurin
23+
java-version: '17'
24+
cache: maven
25+
26+
- name: Set up Node.js (JS/TS analyzer tests need a Node runtime)
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: '20'
30+
31+
- name: Build and test
32+
# `verify`, not `test`: the cli integration tests spawn the daemon and
33+
# need its shaded fat jar, which is only built at the package phase.
34+
run: mvn -B -ntp verify

0 commit comments

Comments
 (0)