mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-09 20:57:23 +08:00
29 lines
641 B
YAML
29 lines
641 B
YAML
name: Build
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
jdk-version:
|
|
- 17
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: "adopt"
|
|
java-version: ${{ matrix.jdk-version }}
|
|
cache: "maven"
|
|
- name: Compile
|
|
run: |
|
|
sed -i.bak '/<repositories>/,/<\/repositories>/d' pom.xml
|
|
sed -i.bak '/<pluginRepositories>/,/<\/pluginRepositories>/d' pom.xml
|
|
mvn -B compile --file pom.xml
|