Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
bca7255
Update README.md
jpveooys Apr 5, 2022
242f373
Delete CODEOWNERS
jpveooys Apr 5, 2022
94f52d8
Delete dependabot.yml
jpveooys Apr 5, 2022
4eb2403
Update sonar-project.properties
jpveooys Apr 5, 2022
46bfebf
ci(GHA): Refactor visual regression tests
jpveooys Apr 5, 2022
2432090
Merge pull request #4 from jpveooys/refactor-chromatic-build
jpveooys Apr 5, 2022
096ca05
ci(GHA): Refactor visual regression tests
jpveooys Apr 5, 2022
eb2f2ec
ci(GHA): Refactor visual regression tests
jpveooys Apr 5, 2022
a2c9f8e
ci(GHA): Create local-pr-test
jpveooys Apr 5, 2022
105ebad
ci(GHA): Create local-pr-test
jpveooys Apr 5, 2022
c10bbda
ci(GHA): Create local-pr-test
jpveooys Apr 5, 2022
97ff436
ci(GHA): Create local-pr-test
jpveooys Apr 5, 2022
ac7d336
ci(GHA): Create local-pr-test
jpveooys Apr 5, 2022
eab2d11
ci(GHA): Create local-pr-test
jpveooys Apr 5, 2022
538101e
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
c6455b3
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
5dafc2d
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
c1ede57
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
e1b77cc
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
c2fde6a
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
55a18eb
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
2b2835f
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
f84de54
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
42aacd0
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
4fdc459
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
85ea5c3
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
779efcb
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
7fcec58
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
b57c275
ci(GHA): Create local-pr-test
jpveooys Apr 6, 2022
c4e1321
ci(GHA): Create local-pr-test
jpveooys Apr 7, 2022
1689343
ci(GHA): Create local-pr-test
jpveooys Apr 7, 2022
1dc66c3
ci(GHA): Create local-pr-test
jpveooys Apr 7, 2022
640f58e
ci(GHA): Create local-pr-test
jpveooys Apr 7, 2022
4d12b0f
ci(GHA): Add final-ish versions of updated workflows
jpveooys Apr 8, 2022
cccefcb
ci(GHA): Add final-ish versions of updated workflows
jpveooys Apr 8, 2022
7e08d09
chore(Security): bump @types/lodash from 4.14.180 to 4.14.181
dependabot[bot] Apr 8, 2022
c5961ac
chore(Security): bump @storybook/addons
dependabot[bot] Apr 8, 2022
b4834ba
ci(GHA): Add final-ish versions of updated workflows
jpveooys Apr 11, 2022
daffd21
chore(Security): bump @babel/plugin-transform-modules-commonjs
dependabot[bot] Apr 11, 2022
6a4bee4
ci(GHA): Add final-ish versions of updated workflows
jpveooys Apr 12, 2022
33ec16c
ci(GHA): Add final-ish versions of updated workflows
jpveooys Apr 12, 2022
cdef7df
ci(GHA): Add final-ish versions of updated workflows
jpveooys Apr 12, 2022
b75d366
ci(GHA): Add final-ish versions of updated workflows
jpveooys Apr 12, 2022
43b323c
ci(GHA): Add final-ish versions of updated workflows
jpveooys Apr 12, 2022
2310065
ci(GHA): Test PR from fork
jpveooys-test Apr 6, 2022
1dced04
ci(GHA): Test changed story
jpveooys-test Apr 6, 2022
7d72e66
ci(GHA): Change another story
jpveooys-test Apr 6, 2022
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
8 changes: 0 additions & 8 deletions .github/CODEOWNERS

This file was deleted.

5 changes: 1 addition & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
interval: monthly
open-pull-requests-limit: 5
reviewers:
- m7kvqbe1
- thyhjwb6
labels:
- "Type: Dependencies"
commit-message:
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/automerge.yml

This file was deleted.

89 changes: 50 additions & 39 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Cache Cypress binary
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -43,7 +43,7 @@ jobs:
tar -czvf dist.tar.gz distil distdt

- name: Persist artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: ./dist.tar.gz
Expand All @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Run audit
run: yarn run audit
Expand All @@ -63,13 +63,13 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: check commits
run: |
Expand All @@ -80,13 +80,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Get dependencies & run lint
run: |
Expand All @@ -98,16 +98,16 @@ jobs:
needs: [Build_icon_library, Lint_react-component-library]
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Attach workspace
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist

Expand All @@ -121,7 +121,7 @@ jobs:

- name: SonarCloud Scan
uses: defencedigital/design-system-sonarcloud-action@master
if: ${{ github.actor != 'dependabot[bot]' }}
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand All @@ -134,24 +134,24 @@ jobs:
browser: ['chrome', 'firefox']
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Cache Cypress binary
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
cypress-${{ runner.os }}-cypress-

- name: Attach workspace
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist

Expand Down Expand Up @@ -183,16 +183,16 @@ jobs:
needs: [Build_icon_library, Lint_react-component-library]
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Attach workspace
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist

Expand All @@ -206,42 +206,53 @@ jobs:
needs: [Build_icon_library]
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache Node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Jest design-tokens
run: |
yarn --cwd packages/design-tokens build
yarn --cwd packages/design-tokens test

Test_visual_regression:
Build_storybook:
runs-on: ubuntu-latest
needs: [Build_icon_library, Test_react-component-library]
# https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
if: ${{ github.actor != 'dependabot[bot]' }}
needs: [Build_icon_library]
steps:
- name: Git clone repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Cache Node modules
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Attach workspace
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist

- name: Run visual regression tests
- name: Build Storybook
env:
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
CHROMATIC_BRANCH: ${{ github.head_ref || github.ref_name }}
CHROMATIC_SLUG: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
run: |
tar -xzf dist.tar.gz && mv distil packages/icon-library/dist && mv distdt packages/design-tokens/dist
yarn --cwd packages/react-component-library chromatic --project-token=${{secrets.CHROMATIC_TOKEN}} --ci
yarn --cwd packages/react-component-library storybook:static
echo "$CHROMATIC_SHA" > packages/react-component-library/.static_storybook/sha
echo "$CHROMATIC_BRANCH" > packages/react-component-library/.static_storybook/branch
echo "$CHROMATIC_SLUG" > packages/react-component-library/.static_storybook/slug

- name: Upload Storybook artefact
uses: actions/upload-artifact@v3
with:
name: storybook-static
path: packages/react-component-library/.static_storybook
38 changes: 38 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'CodeQL security scan'

on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '16 9 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['typescript']

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2
66 changes: 0 additions & 66 deletions .github/workflows/npmsmoketest.yml

This file was deleted.

Loading