-
Notifications
You must be signed in to change notification settings - Fork 61
47 lines (42 loc) · 1.47 KB
/
code_sample_checker.yml
File metadata and controls
47 lines (42 loc) · 1.47 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
name: Code sample checker
on: pull_request
jobs:
node-versions:
uses: ./.github/workflows/get-supported-node-versions.yml
test-code-samples:
name: Check code samples
runs-on: ${{matrix.os}}
needs: node-versions
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Read Java Config
shell: bash
run: cat .github/java-config.env >> $GITHUB_ENV
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ needs.node-versions.outputs.default-version }}
- name: Install dependencies and compile client
run: |
npm install
npm run compile
- name: Check code samples
run: |
npm run check-code-samples
- name: Upload remote controller logs if test run fails
uses: actions/upload-artifact@v4
if: failure()
with:
name: rc-logs-${{ matrix.os }}
path: |
rc_stderr.log
rc_stdout.log