Update .gitea/workflows/build.yml
This commit is contained in:
parent
97651c45cd
commit
4ab34396f0
@ -9,27 +9,17 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-gitea
|
runs-on: ubuntu-gitea
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
||||||
|
java-version: '21' - uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Prep for local builds
|
- name: Install Maven
|
||||||
run: echo "${LOCIP} gitea.comnenos" >> /etc/hosts
|
run: apt install -y maven
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Build And Test
|
||||||
run: |
|
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
|
mvn compiler:compile
|
||||||
apt install -y maven
|
mvn compiler:testCompile
|
||||||
|
mvn surefire:test
|
||||||
- name: Setup Java
|
|
||||||
- uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'adopt' # See 'Supported distributions' for available options
|
|
||||||
java-version: '17'
|
|
||||||
run: |
|
|
||||||
java -version
|
|
||||||
mvn -B verify --file pom.xml
|
|
||||||
|
|
||||||
- name: Build And Test
|
|
||||||
run: |
|
|
||||||
mvn compiler:compile
|
|
||||||
mvn compiler:testCompile
|
|
||||||
mvn surefire:test
|
|
Loading…
Reference in New Issue
Block a user