Skip to content

feat!: changed latest-package behavior #466

feat!: changed latest-package behavior

feat!: changed latest-package behavior #466

Workflow file for this run

name: Test
on:
# This workflow is triggered on pull requests to the main branch.
pull_request:
# milestoned is added here as a workaround for release-please not triggering PR workflows (PRs should be added to a milestone to trigger the workflow).
types: [milestoned, opened, reopened, synchronize]
paths-ignore:
- "**.md"
- "**.jpg"
- "**.png"
- "**.gif"
- "**.svg"
- adr/**
- docs/**
- .gitignore
- renovate.json
- .release-please-config.json
- release-please-config.json
- CODEOWNERS
- LICENSE
- CONTRIBUTING.md
- SECURITY.md
- config/renovate.json5
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
# Permissions for the GITHUB_TOKEN used by the workflow.
permissions:
contents: read # Allows reading the content of the repository.
jobs:
run-flavor-test:
name: ${{ matrix.type }} ${{ matrix.flavor }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
flavor: [test, break]
type: [install, upgrade, breaking-change]
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Environment setup
uses: ./.github/actions/setup
with:
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }}
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }}
ghToken: ${{ secrets.GITHUB_TOKEN }}
- name: Test-Flavor
uses: ./.github/actions/test-flavor
if: ${{ matrix.type == 'upgrade'}}
with:
flavor: ${{ matrix.flavor }}
type: ${{ matrix.type }}
- name: Set Skip Variable
id: set_skip
run: |
if [ "${{ matrix.type }}" =! "upgrade" ]; then
echo "skip=false" >> $GITHUB_ENV
fi
run-test:
runs-on: ubuntu-latest
needs: run-flavor-test
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
flavor: [test, break]
type: [install, upgrade, breaking-change]
if: ${{ needs.run-flavor-test.outputs.skip != 'true' }}
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Clean Runner
uses: ./.github/actions/clean-runner
- name: Environment setup
uses: ./.github/actions/setup
with:
registry1Username: ${{ secrets.IRON_BANK_ROBOT_USERNAME }}
registry1Password: ${{ secrets.IRON_BANK_ROBOT_PASSWORD }}
ghToken: ${{ secrets.GITHUB_TOKEN }}
- name: Test
uses: ./.github/actions/test
with:
flavor: ${{ matrix.flavor }}
type: ${{ matrix.type }}
- name: Debug Output
if: ${{ always() }}
uses: ./.github/actions/debug-output
- name: Save logs
if: ${{ always() }}
uses: ./.github/actions/save-logs
with:
suffix: ${{ matrix.type }}-${{ matrix.flavor }}-${{ github.run_id }}-${{ github.run_attempt }}