diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ac984ec90..5b546b6aa 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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 diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5851fc34f..22a6cf47e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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 @@ -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 @@ -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