Skip to content

Update CI script

Update CI script #239

Workflow file for this run

name: RSP Community CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java: ["11"]
node: [16]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Build RSP part using Maven
working-directory: rsp
run: mvn clean install -U -fae -e -B
- name: Install NPM prerequisities
working-directory: vscode
run: |
npm install -g typescript vsce
- name: Build VSCode part using NPM
working-directory: vscode
run: |
npm install
npm run build
- name: Run NPM tests
uses: GabrielBB/xvfb-action@f040be23a619e5ec34116f24098ad3626ceab681 #v1.4
with:
working-directory: vscode
run: npm run test
- name: Run NPM ui-tests
if: runner.os == 'Linux'
uses: GabrielBB/xvfb-action@f040be23a619e5ec34116f24098ad3626ceab681 #v1.4
with:
working-directory: vscode
run: npm run ui-test
- name: Archiving test artifacts
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: |
vscode/test-resources/screenshots/*.png
vscode/test-resources/*.log
vscode/test-resources/test-report.xml
retention-days: 2