Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump testomatio/check-tests from stable to master #5879

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 13 additions & 22 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,38 @@
name: Lint

on:
push:
merge_group:
pull_request:
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

concurrency: '${{ github.workflow }}-${{ github.ref }}'
permissions:
contents: write

jobs:
docker-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
verbose: true
lint:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

with:
fetch-depth: 0
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
# uses version from "packageManager" field in package.json

- name: Setup Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
cache: pnpm
node-version-file: '.node-version'

node-version-file: .node-version
- name: Install Packages
run: |
pnpm install --frozen-lockfile
env:
CYPRESS_CACHE_FOLDER: .cache/Cypress

- name: Run Linting
shell: bash
run: |
Expand All @@ -55,8 +48,9 @@ jobs:
# make sure to return an error exitcode so that GitHub actions shows a red-cross
exit 1
fi

- name: Verify `./src/config.type.ts` is in sync with `./src/schemas/config.schema.yaml`
- name: >-
Verify `./src/config.type.ts` is in sync with
`./src/schemas/config.schema.yaml`
shell: bash
run: |
if ! pnpm run --filter mermaid types:verify-config; then
Expand All @@ -68,7 +62,6 @@ jobs:
# make sure to return an error exitcode so that GitHub actions shows a red-cross
exit 1
fi

- name: Verify no circular dependencies
working-directory: ./packages/mermaid
shell: bash
Expand All @@ -82,16 +75,14 @@ jobs:
# make sure to return an error exitcode so that GitHub actions shows a red-cross
exit 1
fi

- name: Verify Docs
id: verifyDocs
working-directory: ./packages/mermaid
continue-on-error: ${{ github.event_name == 'push' }}
run: pnpm run docs:verify

- uses: testomatio/check-tests@0ea638fcec1820cf2e7b9854fdbdd04128a55bd4 # stable
continue-on-error: "${{ github.event_name == 'push' }}"
run: 'pnpm run docs:verify'
- uses: testomatio/check-tests@4002d772f03f907ae2b3d76a4a603795c07a1d06
with:
framework: cypress
tests: './cypress/e2e/**/**.spec.js'
token: ${{ secrets.GITHUB_TOKEN }}
tests: ./cypress/e2e/**/**.spec.js
token: '${{ secrets.GITHUB_TOKEN }}'
has-tests-label: true
Loading