Skip to content

Commit bf413a7

Browse files
committed
2 parents f082b68 + 482ee16 commit bf413a7

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Java CI with Maven
10+
11+
on:
12+
push:
13+
branches: [ "main" ]
14+
pull_request:
15+
branches: [ "main" ]
16+
17+
jobs:
18+
build:
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
browser: [chromium, firefox]
24+
runs-on: windows-latest
25+
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Set up JDK 17
29+
uses: actions/setup-java@v3
30+
with:
31+
distribution: 'temurin'
32+
java-version: '17'
33+
- uses: actions/setup-node@v3
34+
with:
35+
node-version: 14
36+
- run: npx playwright install --with-deps ${{ matrix.browser }} chromium
37+
- uses: actions/upload-artifact@v3
38+
with:
39+
name: ${{ matrix.browser }}-win-test-results
40+
path: test-results
41+
- name: Build & Install
42+
run: mvn -B install -D skipTests --no-transfer-progress
43+
- name: Run Tests with Maven
44+
run: mvn clean test --file pom.xml
45+
46+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
47+
- name: Update dependency graph
48+
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)
2+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
3+
[![Java CI with Maven](https://github.com/anhtester/PlaywrightJava/actions/workflows/maven.yml/badge.svg?branch=main)](https://github.com/anhtester/PlaywrightJava/actions/workflows/maven.yml)
4+
15
# PlaywrightJava
26
Learning Playwright for Java 2022 | Anh Tester
37

0 commit comments

Comments
 (0)