File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
26Learning Playwright for Java 2022 | Anh Tester
37
You can’t perform that action at this time.
0 commit comments