mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-30 14:30:08 +08:00
fix maven options
This commit is contained in:
parent
64290bb249
commit
f797255f0c
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -16,11 +16,6 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
MAVEN_OPTS: "-Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$GITHUB_WORKSPACE/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
|
||||
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
|
||||
CI: "true"
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@ -38,13 +33,13 @@ jobs:
|
||||
- name: Cache Maven Deps
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
path: $GITHUB_WORKSPACE/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Build backend
|
||||
run: mvn install -DskipTests # todo fix tests
|
||||
run: mvn --batch-mode --errors --fail-at-end --show-version --no-transfer-progress -Dmaven.repo.local=$GITHUB_WORKSPACE/.m2/repository install -DskipTests # todo fix tests
|
||||
|
||||
- name: Cache Yarn
|
||||
uses: actions/cache@v2
|
||||
@ -55,7 +50,11 @@ jobs:
|
||||
${{ runner.os }}-yarn-
|
||||
|
||||
- name: Install frontend deps
|
||||
env:
|
||||
CI: true
|
||||
run: (cd frontend && yarn install --frozen-lockfile --cache-folder ~/.cache/yarn)
|
||||
|
||||
- name: Build frontend
|
||||
env:
|
||||
CI: true
|
||||
run: (cd frontend && yarn build)
|
||||
|
Loading…
Reference in New Issue
Block a user