-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (36 loc) · 932 Bytes
/
Build.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
40
41
42
43
44
45
name: Build
on:
push:
branches: [main]
pull_request:
branches: ["**"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 8
cache: "maven"
- name: Build & Test
run: npm run build
- name: Checkout samples repo
uses: actions/checkout@v4
with:
submodules: recursive
repository: apex-dev-tools/apex-samples
path: apex-samples
ref: v1.2.0
- name: Set samples env
run: echo "SAMPLES=$GITHUB_WORKSPACE/apex-samples" >> "$GITHUB_ENV"
- name: System Test
run: npm run test-samples
working-directory: npm