-
Notifications
You must be signed in to change notification settings - Fork 122
46 lines (42 loc) · 1.06 KB
/
playwright-examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Playwright JUnit 5 Tests
on:
schedule:
- cron: '50 21 * * *'
workflow_dispatch:
push:
branches: [ main ]
paths:
- '**/playwright-examples/**'
- 'pom.*'
pull_request:
paths:
- '**/playwright-examples/**'
- 'pom.*'
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: axel-op/googlejavaformat-action@v3
with:
args: "--replace"
files: "playwright-examples/**/*.java"
skip-commit: true
- name: Print diffs
if: success() || failure()
run: git --no-pager diff --exit-code
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 11
distribution: "temurin"
- name: Run JUnit 5 tests
working-directory: ./playwright-examples
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: mvn test