Repository navigation
67 lines (54 loc) · 1.89 KB
/
Copy pathci.yml
File metadata and controls
67 lines (54 loc) · 1.89 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: CI
on:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
build-and-test:
name: Build & Test (Java ${{ matrix.java-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: ['25', '26']
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Amazon Corretto ${{ matrix.java-version }}
uses: actions/setup-java@v6
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
cache: 'maven'
- name: Verify vendored upstream integrity
run: ./tools/export-upstream --verify
- name: Verify vendored upstream hashes against the pinned commit
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./tools/export-upstream --verify-pinned
- name: Self-check vendoring enforcement
run: ./tools/export-upstream --self-test
- name: Check Code Formatting (Spotless)
run: mvn --batch-mode spotless:check
- name: Validate reactor
run: mvn --batch-mode validate
- name: Run Tests and Verifications
run: mvn --batch-mode clean verify
xerial-control:
# Reference probe, not a parity gate: the same vendored tests run against the pinned
# xerial driver. A failure means the vendored test is not a valid reference or the
# driver diverges without a recorded reason, not that libSQL must match xerial.
name: Xerial Control (reference probe)
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Amazon Corretto 25
uses: actions/setup-java@v5
with:
distribution: 'corretto'
java-version: '25'
cache: 'maven'
- name: Run the xerial control profile
run: mvn --batch-mode -pl libsql-conformance -am -Pxerial-control verify