-
Notifications
You must be signed in to change notification settings - Fork 61
34 lines (31 loc) · 1.01 KB
/
code_sample_checker.yml
File metadata and controls
34 lines (31 loc) · 1.01 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
name: Code sample checker
on: pull_request
jobs:
test-code-samples:
name: Check code samples
runs-on: ${{matrix.os}}
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: 10
- name: Install dependencies and compile client
run: |
npm install
npm run compile
- name: Check code samples
run: |
npm run check-code-samples