devops: run tests on GitHub Action (#3)

This commit is contained in:
Max Schmitt 2020-10-08 18:22:36 +02:00 committed by GitHub
parent a005249c6d
commit c42c88a1bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

35
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
browser: [chromium]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: microsoft/playwright-github-action@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: Install driver dependencies
working-directory: driver
run: npm install
- name: Build with Maven
run: mvn -B package -D skipTests --file lib/pom.xml
- name: Run tests
working-directory: lib
run: mvn test
env:
BROWSER: ${{ matrix.browser }}

View File

@ -28,6 +28,11 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
</plugins>
</build>
<dependencies>