PR Builder Test #1019
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |