playwrightjava1/.gitea/workflows/build.yml

38 lines
795 B
YAML
Raw Permalink Normal View History

2024-07-23 09:48:39 +00:00
name: msbuild
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-gitea
steps:
2024-07-23 10:27:52 +00:00
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
2024-07-23 10:29:00 +00:00
with:
2024-07-23 10:33:03 +00:00
distribution: 'adopt'
2024-07-23 10:29:51 +00:00
java-version: '17'
2024-07-23 10:20:33 +00:00
2024-07-23 10:27:52 +00:00
- name: Install Maven
2024-07-23 10:41:09 +00:00
run: apt update && apt search maven && apt install -y maven
2024-07-23 10:33:03 +00:00
2024-07-23 12:36:44 +00:00
- name: Validate Java installation
2024-07-23 10:33:03 +00:00
run: |
java -version
mvn --version
echo $JAVA_HOME
mvn -B verify --file pom.xml
2024-07-23 10:02:41 +00:00
2024-07-23 12:36:44 +00:00
- name: Prep Playwright Dependencies
run: mvn exec:java -e -Dexec.mainClass=com.microsoft.playwright.CLI -Dexec.args="install-deps"
2024-07-23 10:46:43 +00:00
- name: Build
2024-07-23 10:27:52 +00:00
run: |
mvn compiler:compile
mvn compiler:testCompile
2024-07-23 10:46:43 +00:00
- name: Test
run: mvn surefire:test