Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Updating github-config
Browse files Browse the repository at this point in the history
  • Loading branch information
paketo-bot committed Jul 27, 2022
1 parent ef26767 commit cfa2569
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/.patch_files
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ README.md
scripts/.util/print.sh
scripts/.util/tools.json
scripts/.util/tools.sh
scripts/.util/builders.sh
scripts/integration.sh
scripts/unit.sh
15 changes: 14 additions & 1 deletion .github/workflows/create-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
unit:
name: Unit Tests
runs-on: ubuntu-latest
outputs:
builders: ${{ steps.builders.outputs.builders }}
steps:
- name: Setup Go
uses: actions/setup-go@v3
Expand All @@ -27,11 +29,22 @@ jobs:
uses: actions/checkout@v3
- name: Run Unit Tests
run: ./scripts/unit.sh
- name: Get builders from integration.json
id: builders
run: |
source "${{ github.workspace }}/scripts/.util/builders.sh"
builders="$(util::builders::list "${{ github.workspace }}/integration.json")"
printf "Output: %s\n" "${builders}"
printf "::set-output name=builders::%s\n" "${builders}"
integration:
name: Integration Tests
runs-on: ubuntu-latest
needs: unit
strategy:
matrix:
builder: ${{ fromJSON(needs.unit.outputs.builders) }}
fail-fast: false # don't cancel all test jobs when one fails
steps:
- name: Setup Go
uses: actions/setup-go@v3
Expand All @@ -41,7 +54,7 @@ jobs:
uses: actions/checkout@v3
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
- name: Run Integration Tests
run: ./scripts/integration.sh --use-token
run: ./scripts/integration.sh --use-token --builder ${{ matrix.builder }}
env:
GIT_TOKEN: ${{ github.token }}

Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
printf "::set-output name=builders::%s\n" "${builders}"
integration:
name: Integration Tests
name: Integration Tests with Builders
runs-on: ubuntu-latest
needs: unit
strategy:
Expand All @@ -61,6 +61,15 @@ jobs:
env:
GIT_TOKEN: ${{ github.token }}

roundup:
name: Integration Tests
runs-on: ubuntu-latest
needs: integration
steps:
- run: |
echo "Integration tests passed against all builders"
exit 0
upload:
name: Upload Workflow Event Payload
runs-on: ubuntu-latest
Expand Down

0 comments on commit cfa2569

Please sign in to comment.