playwrightjava1/.gitea/workflows/build.yml

34 lines
1.2 KiB
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:
- name: Prep for local builds
run: echo "${LOCIP} gitea.comnenos" >> /etc/hosts
2024-07-23 10:02:41 +00:00
- name: Install Dependencies
run: |
apt update && apt install -y ca-certificates curl gnupg && mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && NODE_MAJOR=20 && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && apt update && apt install nodejs -y
apt install -y maven
2024-07-23 09:57:28 +00:00
- name: Setup Java
2024-07-23 10:16:00 +00:00
- uses: actions/checkout@v4
2024-07-23 09:57:28 +00:00
- uses: actions/setup-java@v4
2024-07-23 09:48:39 +00:00
with:
2024-07-23 10:16:00 +00:00
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '17'
2024-07-23 10:11:08 +00:00
- run: |
java -version
2024-07-23 09:57:28 +00:00
mvn -B verify --file pom.xml
2024-07-23 10:02:41 +00:00
- name: Build And Test
run: |
2024-07-23 09:57:28 +00:00
mvn compiler:compile
mvn compiler:testCompile
mvn surefire:test