Skip to content

Commit 24f8b77

Browse files
nmergetmfranzke
andauthored
WIP: feat: disabled Canvas/Docs in panel for storybook (#6)
* feat: disabled Canvas/Docs in panel for storybook and rearranged components Co-authored-by: Maximilian Franzke <[email protected]>
1 parent b9fa179 commit 24f8b77

File tree

222 files changed

+36598
-20141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+36598
-20141
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: 'Cancel Workflow'
3+
description: 'Cancel this workflow on failure'
4+
inputs:
5+
token:
6+
description: 'A Github PAT'
7+
required: true
8+
runs:
9+
using: 'composite'
10+
steps:
11+
- run: |
12+
gh api \
13+
--method POST \
14+
-H "Accept: application/vnd.github+json" \
15+
/repos/db-ui/elements/actions/runs/${{ github.run_id }}/cancel
16+
shell: bash
17+
env:
18+
GH_TOKEN: ${{ inputs.token }}

.github/workflows/00-init.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ jobs:
2424
uses: bahmutov/npm-install@v1
2525
with:
2626
install-command: npm ci --ignore-scripts
27+
28+
- name: 💀 Killing me softly
29+
uses: ./.github/actions/cancel-workflow
30+
if: failure()
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Install Cypress
3+
4+
on:
5+
workflow_call:
6+
7+
jobs:
8+
install-cypress:
9+
name: Install Cypress
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: ⬇ Checkout repo
13+
uses: actions/checkout@v3
14+
15+
- name: 💻 Install dependencies
16+
uses: cypress-io/github-action@v4
17+
with:
18+
working-directory: e2e
19+
runTests: false
20+
21+
- name: 💀 Killing me softly
22+
uses: ./.github/actions/cancel-workflow
23+
if: failure()
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/00-scan-secrets.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,21 @@ jobs:
1111
uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
14+
1415
- name: ↔ Extract branch name
1516
shell: bash
1617
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
1718
id: extract_branch
19+
1820
- name: 🐷 TruffleHog OSS
1921
uses: trufflesecurity/[email protected]
2022
with:
2123
path: ./
2224
base: ${{ steps.extract_branch.outputs.branch }}
2325
head: HEAD
26+
27+
- name: 💀 Killing me softly
28+
uses: ./.github/actions/cancel-workflow
29+
if: failure()
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-build-all.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ jobs:
2525
with:
2626
name: build
2727
path: out
28+
29+
- name: 💀 Killing me softly
30+
uses: ./.github/actions/cancel-workflow
31+
if: failure()
32+
with:
33+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-build-showcases.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ jobs:
6363
with:
6464
name: showcase-${{ matrix.showcases }}
6565
path: showcase/${{ matrix.showcases }}-showcase/dist
66+
67+
- name: 💀 Killing me softly
68+
uses: ./.github/actions/cancel-workflow
69+
if: failure()
70+
with:
71+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-build-stencil-targets.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@ jobs:
5252
with:
5353
name: output-target-${{ matrix.themes }}-${{ steps.path.outputs.framework }}
5454
path: packages/db-ui-elements-${{ steps.path.outputs.framework }}
55+
56+
- name: 💀 Killing me softly
57+
uses: ./.github/actions/cancel-workflow
58+
if: failure()
59+
with:
60+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-build-storybook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,9 @@ jobs:
6666
with:
6767
name: build
6868
path: out
69+
70+
- name: 💀 Killing me softly
71+
uses: ./.github/actions/cancel-workflow
72+
if: failure()
73+
with:
74+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-get-publish-version.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,9 @@ jobs:
6868
env:
6969
VALID_SEMVER_VERSION: ${{ steps.getVersion.outputs.version }}
7070
run: echo "$VALID_SEMVER_VERSION"
71+
72+
- name: 💀 Killing me softly
73+
uses: ./.github/actions/cancel-workflow
74+
if: failure()
75+
with:
76+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/01-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ jobs:
1717

1818
- name: 🔬 Run unit/snapshot tests
1919
run: npm test
20+
21+
- name: 💀 Killing me softly
22+
uses: ./.github/actions/cancel-workflow
23+
if: failure()
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)