From 4ab34396f076a1956fda5a0cd2da71e51a2cb2ed Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Tue, 23 Jul 2024 10:27:52 +0000 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 28fc18b..742caa5 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -9,27 +9,17 @@ jobs: build: runs-on: ubuntu-gitea 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 - run: echo "${LOCIP} gitea.comnenos" >> /etc/hosts - - - 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 + - name: Install Maven + run: apt install -y maven - - 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 \ No newline at end of file + - name: Build And Test + run: | + mvn compiler:compile + mvn compiler:testCompile + mvn surefire:test \ No newline at end of file