Skip to content

Initial attempt for e2e tests #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions e2e/spring-shell-e2e-tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 5 additions & 0 deletions e2e/spring-shell-e2e-tests/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# dont care about typings
types/

# for test data
test/data/
11 changes: 11 additions & 0 deletions e2e/spring-shell-e2e-tests/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "avoid",
"parser": "typescript"
}
12 changes: 12 additions & 0 deletions e2e/spring-shell-e2e-tests/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true,
setupFilesAfterEnv: ['jest-extended', '@alex_neo/jest-expect-message']
}
Loading