Skip to content

Commit

Permalink
Cache again the docker images
Browse files Browse the repository at this point in the history
And remove update files in master branch
  • Loading branch information
dadoonet committed Oct 24, 2023
1 parent f0760fd commit bdbff3b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,8 @@ on:
branches: [ master ]

jobs:
# We update files if needed
update-files:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT || github.token }}
ref: ${{ github.head_ref }}
- name: Update resources with Maven
run: mvn -B generate-resources
- name: Update files if needed
uses: stefanzweifel/git-auto-commit-action@v5
build:
runs-on: ubuntu-latest
needs: update-files
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17 and Maven Central Repository
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: Cache Docker images
uses: ScribeMD/docker-cache@0.3.6
with:
key: fscrawler-docker-cache-${{ runner.os }}-${{ hashFiles('pom.xml') }}
continue-on-error: true
- name: Run the integration tests
run: mvn --batch-mode install -Ddocker.skip -DskipUnitTests

Expand All @@ -64,6 +69,11 @@ jobs:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: Cache Docker images
uses: ScribeMD/docker-cache@0.3.6
with:
key: fscrawler-docker-cache-${{ runner.os }}-${{ hashFiles('pom.xml') }}
continue-on-error: true
- name: Run the integration tests
run: mvn --batch-mode install -Ddocker.skip -DskipUnitTests -Pes-7x

Expand All @@ -79,6 +89,11 @@ jobs:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: Cache Docker images
uses: ScribeMD/docker-cache@0.3.6
with:
key: fscrawler-docker-cache-${{ runner.os }}-${{ hashFiles('pom.xml') }}
continue-on-error: true
- name: Run the integration tests
run: mvn --batch-mode install -Ddocker.skip -DskipUnitTests -Pes-6x

Expand Down

0 comments on commit bdbff3b

Please sign in to comment.