Skip to content

chore(deps-dev): Bump @typescript-eslint/eslint-plugin from 6.20.0 to 6.21.0 #5476

chore(deps-dev): Bump @typescript-eslint/eslint-plugin from 6.20.0 to 6.21.0

chore(deps-dev): Bump @typescript-eslint/eslint-plugin from 6.20.0 to 6.21.0 #5476

Workflow file for this run

# create-gui-pr.yaml is dependant on this name being "Tests"
name: 'Tests'
#
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.groups }}
spec_group_ids: ${{ steps.set-group-ids.outputs.group_ids }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: '.nvmrc'
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
id: node-modules-cache
with:
path: |
**/node_modules
/home/runner/.cache
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
yarn run lint:lockfile
yarn deps
- id: set-groups
env:
THREAD_COUNT: 5
run: echo "groups=$(find features -type f -name '*.feature' | xargs -n $(($(find features -type f -name '*.feature' | wc -l) / $THREAD_COUNT + 1)) | tr ' ' ',' | jq -R . | jq -s -cM .)" >> $GITHUB_OUTPUT
- id: set-group-ids
env:
SPEC_GROUPS: ${{ steps.set-groups.outputs.groups }}
run: echo "group_ids=$(echo $SPEC_GROUPS | jq -cM 'to_entries | map(.key)')" >> $GITHUB_OUTPUT
lint-tests:
needs: [install-dependencies]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: '.nvmrc'
- uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
id: node-modules-cache
with:
path: |
**/node_modules
/home/runner/.cache
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- env:
LINTER_MODE: strict
run: |
yarn run lint
yarn run lint:ts
yarn run lint:styles
cli-tests:
needs: [install-dependencies]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: '.nvmrc'
- uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
id: node-modules-cache
with:
path: |
**/node_modules
/home/runner/.cache
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- run: |
yarn run test
browser-tests:
needs: [install-dependencies]
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
container: ${{ fromJSON(needs.install-dependencies.outputs.spec_group_ids) }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: '.nvmrc'
- uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
id: node-modules-cache
with:
path: |
**/node_modules
/home/runner/.cache
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
- run: |
yarn build:staging
- env:
SPEC_GROUPS: ${{ needs.install-dependencies.outputs.spec_groups }}
run: |
yarn preview:built &
CYPRESS_video=true yarn run test:browser --spec $(echo $SPEC_GROUPS | jq -cMr '.[${{ matrix.container }}]')
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
if: failure()
with:
name: cypress-artifacts
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"