Initial attempt for e2e tests
- Add node code for e2e tests. This is a first take to try running these tests via actions. - Relates to #401
This commit is contained in:
51
.github/workflows/e2e.yml
vendored
Normal file
51
.github/workflows/e2e.yml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: e2e
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
e2e:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- nickname: win
|
||||
os: windows-2019
|
||||
graal: 22.0.0.2
|
||||
- nickname: macos
|
||||
os: macos-latest
|
||||
graal: 22.0.0.2
|
||||
- nickname: linux
|
||||
os: ubuntu-latest
|
||||
graal: 22.0.0.2
|
||||
name: CI Native ${{ matrix.nickname }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: adopt
|
||||
java-version: 11
|
||||
cache: maven
|
||||
- uses: graalvm/setup-graalvm@v1
|
||||
with:
|
||||
version: ${{ matrix.graal }}
|
||||
java-version: 11
|
||||
components: native-image
|
||||
set-java-home: false
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '14'
|
||||
- run: |
|
||||
./mvnw clean package -Pnative
|
||||
- name: compile e2e module
|
||||
working-directory: e2e/spring-shell-e2e
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
- name: run e2e tests
|
||||
working-directory: e2e/spring-shell-e2e-tests
|
||||
run: |
|
||||
npm install
|
||||
npm test
|
||||
Reference in New Issue
Block a user