playwrightjava1/.gitea/workflows/build.yml

32 lines
630 B
YAML
Raw 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
- name: Validate installation
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 10:27:52 +00:00
- name: Build And Test
run: |
mvn compiler:compile
mvn compiler:testCompile
mvn surefire:test