Skip to content

Commit

Permalink
updated tests to uses cache and run on self-hosted runners
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomsaraiva committed Sep 6, 2024
1 parent f6b0406 commit c859361
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
runs-on: [self-hosted, Ubuntu]
permissions:
contents: read
packages: write
Expand All @@ -21,11 +21,8 @@ jobs:
- name: Install Maven
run: sudo apt-get update; sudo apt-get install maven -y

- name: Clear Maven cache
run: mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false

- name: Build with Maven
run: mvn clean validate compile package verify install --file pom.xml
run: mvn clean validate compile package --file pom.xml

- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v4
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: [self-hosted, Ubuntu]
permissions:
contents: read
packages: write
Expand All @@ -36,8 +36,5 @@ jobs:
- name: Install Maven
run: sudo apt-get update; sudo apt-get install maven -y

- name: Clear Maven cache
run: mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false

- name: Build with Maven
run: mvn clean validate compile test test-compile --file pom.xml

0 comments on commit c859361

Please sign in to comment.