Skip to content

Commit

Permalink
test on ubuntu-22.04 instance
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamez committed Jan 8, 2025
1 parent 3a6678a commit 6472cf9
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/acceptance_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,20 @@ on:
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true

defaults:
job:
runs-on: ubuntu-22.04

jobs:
fail_if_pull_request_is_draft: # Fails in order to indicate that pull request needs to be marked as ready to review to pass.
if: github.event.pull_request.draft == true
runs-on: ubuntu-latest
steps:
- name: Fail if PR is a draft
run: exit 1
pre_ci:
name: Prepare CI environment
if: github.event.pull_request.draft == false # Skip this job and its dependencies if the PR is draft
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
Expand All @@ -53,13 +56,11 @@ jobs:
validate-gradle-wrapper:
if: "!contains(needs.pre_ci.outputs.commit_message, '[acceptance test skip]')"
needs: pre_ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3
pack-snapshot:
needs: [ validate-gradle-wrapper ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
Expand Down Expand Up @@ -89,7 +90,6 @@ jobs:
path: output-comparator/build/libs/output-comparator-*-cli.jar
pack-master:
needs: [ validate-gradle-wrapper ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -117,7 +117,6 @@ jobs:
fetch-urls:
if: "!contains(needs.pre_ci.outputs.commit_message, '[acceptance test skip]')"
needs: pre_ci
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v4
Expand All @@ -142,7 +141,7 @@ jobs:
needs: [ fetch-urls, pack-master, pack-snapshot ]
# We use machines with more memory to run validation, as large feeds
# can consume too much heap for default machine instances (see #1304).
runs-on: ubuntu-latest-4-cores
# runs-on: ubuntu-latest-4-cores
strategy:
matrix: ${{ fromJson(needs.fetch-urls.outputs.matrix) }}
steps:
Expand Down Expand Up @@ -174,7 +173,6 @@ jobs:
name: reports_${{ env.CONCATENATED_IDS }}
path: ${{ github.sha }}/output
merge-reports-artifacts:
runs-on: ubuntu-latest
needs: [ get-reports ]
steps:
- name: Merge Artifacts
Expand All @@ -185,7 +183,6 @@ jobs:
delete-merged: true
compare-outputs:
needs: [ merge-reports-artifacts ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download comparator .jar file from previous job
Expand Down

0 comments on commit 6472cf9

Please sign in to comment.