diff --git a/.github/workflows/check-lowercase.yaml b/.github/workflows/check-lowercase.yaml index c3f469d..64dbddb 100644 --- a/.github/workflows/check-lowercase.yaml +++ b/.github/workflows/check-lowercase.yaml @@ -26,7 +26,7 @@ jobs: # Checkout buildah action github repository - name: Checkout Buildah action - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: "buildah-build" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a7dfe5..18df7bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,10 +9,10 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: npm ci - run: npm run lint - + check-dist: name: Check Distribution runs-on: ubuntu-20.04 @@ -20,7 +20,7 @@ jobs: BUNDLE_FILE: "dist/index.js" BUNDLE_COMMAND: "npm run bundle" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install run: npm ci @@ -30,18 +30,18 @@ jobs: with: bundle_file: ${{ env.BUNDLE_FILE }} bundle_command: ${{ env.BUNDLE_COMMAND }} - + check-inputs-outputs: name: Check Input and Output enums runs-on: ubuntu-20.04 env: IO_FILE: ./src/generated/inputs-outputs.ts steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install dependencies run: npm ci - + - name: Verify Input and Output enums uses: redhat-actions/common/action-io-generator@v1 with: diff --git a/.github/workflows/containerfile_build.yml b/.github/workflows/containerfile_build.yml index 24027fd..736bede 100644 --- a/.github/workflows/containerfile_build.yml +++ b/.github/workflows/containerfile_build.yml @@ -25,7 +25,7 @@ jobs: # Checkout buildah action github repository - name: Checkout Buildah action - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: "buildah-build" diff --git a/.github/workflows/docker_metadata_action.yml b/.github/workflows/docker_metadata_action.yml index 0fa7703..d840769 100644 --- a/.github/workflows/docker_metadata_action.yml +++ b/.github/workflows/docker_metadata_action.yml @@ -1,7 +1,7 @@ # This workflow will perform a test whenever there # is some change in code done to ensure that the changes # are not buggy and we are getting the desired output. -name: Build with docker/metadata-action@v2 +name: Build with docker/metadata-action on: push: pull_request: @@ -25,11 +25,11 @@ jobs: # Checkout buildah action github repository - name: Checkout Buildah action - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Docker Metadata id: docker-metadata - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | ${{ env.IMAGE_NAME }} @@ -103,11 +103,11 @@ jobs: # Checkout buildah action github repository - name: Checkout Buildah action - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Docker Metadata id: docker-metadata - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: | ${{ env.IMAGE_NAME }} @@ -128,31 +128,18 @@ jobs: # Checkout spring-petclinic github repository - name: Checkout spring-petclinic project - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: "spring-projects/spring-petclinic" path: ${{ env.PROJECT_DIR }} - # If none of these files has changed, we assume that the contents of - # .m2/repository can be fetched from the cache. - - name: Hash Maven files - working-directory: ${{ env.PROJECT_DIR }} - run: | - echo "MVN_HASH=${{ hashFiles('**/pom.xml', '.mvn/**/*', 'mvnw*') }}" >> $GITHUB_ENV - - # Download the m2 repository from the cache to speed up the build. - - name: Check for Maven cache - id: check-mvn-cache - uses: actions/cache@v3 - with: - path: ${{ env.MVN_REPO_DIR }} - key: ${{ env.MVN_HASH }} - # Setup java. - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: - java-version: 11 + distribution: 'temurin' + java-version: '17' + cache: 'maven' # Run maven to build the project - name: Maven @@ -160,14 +147,6 @@ jobs: run: | mvn package -ntp -B - # If there was no cache hit above, store the output into the cache now. - - name: Save Maven repo into cache - if: ${{ steps.check-mvn-cache.outputs.cache-hit }} != 'true' - uses: actions/cache@v3 - with: - path: ${{ env.MVN_REPO_DIR }} - key: ${{ env.MVN_HASH }} - # Build image using Buildah action - name: Build Image id: build_image diff --git a/.github/workflows/link_check.yml b/.github/workflows/link_check.yml index bc84d77..896d01d 100644 --- a/.github/workflows/link_check.yml +++ b/.github/workflows/link_check.yml @@ -14,7 +14,7 @@ jobs: name: Check links in markdown runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: gaurav-nelson/github-action-markdown-link-check@v1 with: use-verbose-mode: true diff --git a/.github/workflows/multiarch.yml b/.github/workflows/multiarch.yml index 5e8eb80..5dd8dff 100644 --- a/.github/workflows/multiarch.yml +++ b/.github/workflows/multiarch.yml @@ -26,7 +26,7 @@ jobs: # Checkout buildah action github repository - name: Checkout Buildah action - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: "buildah-build" @@ -94,7 +94,7 @@ jobs: # Checkout buildah action github repository - name: Checkout Buildah action - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: "buildah-build" @@ -112,7 +112,7 @@ jobs: run: | cat > Containerfile<> $GITHUB_ENV - - # Download the m2 repository from the cache to speed up the build. - - name: Check for Maven cache - id: check-mvn-cache - uses: actions/cache@v3 - with: - path: ${{ env.MVN_REPO_DIR }} - key: ${{ env.MVN_HASH }} - # Setup java. - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: - java-version: 11 + distribution: 'temurin' + java-version: '17' + cache: 'maven' # Run maven to build the project - name: Maven @@ -209,14 +196,6 @@ jobs: run: | mvn package -ntp -B - # If there was no cache hit above, store the output into the cache now. - - name: Save Maven repo into cache - if: ${{ steps.check-mvn-cache.outputs.cache-hit }} != 'true' - uses: actions/cache@v3 - with: - path: ${{ env.MVN_REPO_DIR }} - key: ${{ env.MVN_HASH }} - - name: Build Image id: build_image_multiarch uses: ./buildah-build/ diff --git a/.github/workflows/scratch_build.yml b/.github/workflows/scratch_build.yml index 4bfa28d..445d698 100644 --- a/.github/workflows/scratch_build.yml +++ b/.github/workflows/scratch_build.yml @@ -27,7 +27,7 @@ jobs: # Checkout buildah action github repository - name: Checkout Buildah action - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: "buildah-build" @@ -38,31 +38,18 @@ jobs: # Checkout spring-petclinic github repository - name: Checkout spring-petclinic project - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: repository: "spring-projects/spring-petclinic" path: ${{ env.PROJECT_DIR }} - # If none of these files has changed, we assume that the contents of - # .m2/repository can be fetched from the cache. - - name: Hash Maven files - working-directory: ${{ env.PROJECT_DIR }} - run: | - echo "MVN_HASH=${{ hashFiles('**/pom.xml', '.mvn/**/*', 'mvnw*') }}" >> $GITHUB_ENV - - # Download the m2 repository from the cache to speed up the build. - - name: Check for Maven cache - id: check-mvn-cache - uses: actions/cache@v3 - with: - path: ${{ env.MVN_REPO_DIR }} - key: ${{ env.MVN_HASH }} - # Setup java. - name: Setup Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: - java-version: 11 + distribution: 'temurin' + java-version: '17' + cache: 'maven' # Run maven to build the project - name: Maven @@ -70,14 +57,6 @@ jobs: run: | mvn package -ntp -B - # If there was no cache hit above, store the output into the cache now. - - name: Save Maven repo into cache - if: ${{ steps.check-mvn-cache.outputs.cache-hit }} != 'true' - uses: actions/cache@v3 - with: - path: ${{ env.MVN_REPO_DIR }} - key: ${{ env.MVN_HASH }} - # Build image using Buildah action - name: Build Image id: build_image diff --git a/.github/workflows/security_scan.yml b/.github/workflows/security_scan.yml index 149f440..156764e 100644 --- a/.github/workflows/security_scan.yml +++ b/.github/workflows/security_scan.yml @@ -16,9 +16,10 @@ jobs: - uses: actions/checkout@v2 - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '16' + cache: 'npm' - name: Install CRDA uses: redhat-actions/openshift-tools-installer@v1