chore(deps): Bump @kong/kongponents from 9.14.24 to 9.14.29 #8642
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
# create-gui-pr.yaml is dependent on this name being "Tests" | |
name: 'Tests' | |
# Ensures that only one workflow is run per branch at a time. | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
on: | |
push: | |
branches: [master, 'release-[0-9]+.[0-9]+'] | |
pull_request: | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: read # for checking out the repository (e.g. actions/checkout) | |
jobs: | |
install-dependencies: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/kuma-gui | |
outputs: | |
spec_groups: ${{ steps.set-groups.outputs.result }} | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
id: node-modules-cache | |
with: | |
path: | | |
**/node_modules | |
/home/runner/.cache/Cypress | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | |
- if: steps.node-modules-cache.outputs.cache-hit != 'true' | |
run: | | |
make install | |
- id: set-groups | |
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | |
env: | |
THREAD_COUNT: 4 | |
with: | |
script: | | |
const ci = require('./packages/config/scripts/ci.cjs') | |
const json = { | |
'kuma-gui': ci.getPartitionedTestFiles(process.env.THREAD_COUNT, 'packages/kuma-gui/'), | |
} | |
return json | |
lint-tests: | |
needs: [install-dependencies] | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/kuma-gui | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
with: | |
path: | | |
**/node_modules | |
/home/runner/.cache/Cypress | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | |
- run: | | |
make lint | |
cli-tests: | |
needs: [install-dependencies] | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/kuma-gui | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
with: | |
path: | | |
**/node_modules | |
/home/runner/.cache/Cypress | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | |
- run: | | |
make test/unit | |
browser-tests: | |
needs: [install-dependencies] | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/kuma-gui | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
package: ['kuma-gui'] | |
container: [0, 1, 2, 3] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | |
with: | |
path: | | |
**/node_modules | |
/home/runner/.cache/Cypress | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | |
- env: | |
SPEC_GROUPS: ${{ needs.install-dependencies.outputs.spec_groups }} | |
run: | | |
make run/e2e & | |
make CYPRESS_SPEC="$(echo $SPEC_GROUPS | jq -cMr '.["${{ matrix.package }}"]' | jq -cMr '.[${{ matrix.container }}]')" test/e2e | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
if: failure() | |
with: | |
name: cypress-artifacts-${{ matrix.package }}-${{ matrix.container }} | |
retention-days: ${{ github.event_name == 'pull_request' && 3 || 30 }} | |
path: | | |
./packages/kuma-gui/cypress/screenshots | |
./packages/kuma-gui/cypress/videos | |
post-checks: | |
# There is a branch protection rule on the repo that requires "branch-protection" to | |
# be successful | |
name: branch-protection | |
# | |
needs: | |
- lint-tests | |
- cli-tests | |
- browser-tests | |
runs-on: ubuntu-latest | |
if: | | |
always() | |
steps: | |
- name: Check for failures | |
if: | | |
contains(needs.*.result, 'failure') || | |
contains(needs.*.result, 'cancelled') | |
run: echo '${{toJSON(needs)}}' && exit 1 | |
- run: echo "Successful" |