-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (69 loc) · 1.97 KB
/
Copy pathchecks.yml
File metadata and controls
84 lines (69 loc) · 1.97 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Checks
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: checks-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
java:
name: Java ${{ matrix.java }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- java: "11"
goal: "-Dmaven.test.skip=true clean package"
- java: "25"
goal: "clean verify"
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
- name: Build and test Maven reactor
run: mvn --batch-mode ${{ matrix.goal }}
- name: Verify published artifact boundaries
run: bash scripts/verify-artifacts.sh
example:
name: Featurevisor example-1
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Java
uses: actions/setup-java@v5
with:
java-version: "25"
distribution: temurin
cache: maven
- name: Build SDK
run: mvn --batch-mode clean install
- name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
- name: Set up Featurevisor example-1 project
run: |
mkdir example-1
cd example-1
npx --yes @featurevisor/cli@3 init --example=1
npm install
npx featurevisor build
npx featurevisor test --onlyFailures
- name: Run Featurevisor project tests against Java SDK
run: >-
mvn --batch-mode -pl featurevisor-sdk exec:java
-Dexec.mainClass=com.featurevisor.cli.CLI
-Dexec.args="test --projectDirectoryPath=example-1 --onlyFailures"