Skip to content

chore(deps-dev): Bump openapi-typescript from 6.7.6 to 7.1.0 #7238

chore(deps-dev): Bump openapi-typescript from 6.7.6 to 7.1.0

chore(deps-dev): Bump openapi-typescript from 6.7.6 to 7.1.0 #7238

Workflow file for this run

# create-gui-pr.yaml is dependant 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
outputs:
spec_groups: ${{ steps.set-groups.outputs.result }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: '.nvmrc'
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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 getPartitionedTestFiles = require('./scripts/getPartitionedTestFiles.cjs')
return {
'kuma-gui': getPartitionedTestFiles(process.env.THREAD_COUNT),
}
lint-tests:
needs: [install-dependencies]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: '.nvmrc'
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: '.nvmrc'
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
package: ['kuma-gui']
container: [0, 1, 2, 3]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version-file: '.nvmrc'
- uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
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@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
if: failure()
with:
name: cypress-artifacts-${{ matrix.package }}-${{ matrix.container }}
retention-days: ${{ github.event_name == 'pull_request' && 3 || 30 }}
path: |
cypress/screenshots
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"