Bump github.com/cenkalti/backoff/v4 from 4.2.0 to 4.2.1 #921
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
# only one instance of test suite per PR at one time | |
group: pr-${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
unit: | |
name: Unit Tests | |
runs-on: ubuntu-22.04 | |
outputs: | |
builders: ${{ steps.builders.outputs.builders }} | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.x | |
- name: Checkout | |
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 "builders=%s\n" "${builders}" >> "$GITHUB_OUTPUT" | |
integration: | |
name: Integration Tests with Builders | |
runs-on: ubuntu-22.04 | |
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 | |
with: | |
go-version: 1.20.x | |
- name: Checkout | |
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 --builder ${{ matrix.builder }} | |
env: | |
GIT_TOKEN: ${{ github.token }} | |
TMPDIR: "${{ runner.temp }}" | |
roundup: | |
name: Integration Tests | |
if: ${{ always() }} | |
runs-on: ubuntu-22.04 | |
needs: integration | |
steps: | |
- run: | | |
result="${{ needs.integration.result }}" | |
if [[ $result == "success" ]]; then | |
echo "Integration tests passed against all builders" | |
exit 0 | |
else | |
echo "Integration tests failed on one or more builders" | |
exit 1 | |
fi | |
upload: | |
name: Upload Workflow Event Payload | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: event-payload | |
path: ${{ github.event_path }} |