forked from mfwgenerics/kapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 964 Bytes
/
check.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
name: Build and check
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 19
- uses: gradle/gradle-build-action@v2
- name: Check Chrome version
run: |
google-chrome --version > chrome_version
- name: Cache Selenium drivers
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('chrome_version') }}-selenium-driver
path: |
~/.cache/selenium
- run: ./gradlew check
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- name: Upload reports
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: build-reports
path: |
build/reports
**/build/reports