-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* unused package cleanup * make storybook use webpack 5 * see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#webpack-5 * bump react, cleanup * button story tweaks * add Alert stories * bump Jest to v28.1.0 * try original storyshots initialization * split up build & test CI jobs * stop testing Node.js v14 * set jest coverage flag * downgrade paambaati/codeclimate-action again * move jest config files, remove coverageReporter override * collect coverage from `src/` only * another paambaati/codeclimate-action bump test * create additional button markup test * downgrade paambaati/codeclimate-action again * more downgrade * render default button without optional style prop * ignore some folders for Jest * full coverage for Alert * more package updates * add eslint-plugin-testing-library & eslint-plugin-jest-dom * bump ESLint packages, follow new rules * start storybook in quiet mode * update docs * test storybook build as part of CI * more testing docs clarification * add jest:watch command * add body background colors switch in toolbar * TypeScript voodoo * test [email protected] for default coverageCommand * downgrade codeclimate-action and running in debug mode * make coverage artifacts OS agnostic * subgraph typings as artifact for coverage job * disable coverage sending job for now Co-authored-by: Enzo Vezzaro <[email protected]>
- Loading branch information
1 parent
a2bf3b2
commit 5f3ee32
Showing
32 changed files
with
35,997 additions
and
27,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,14 @@ on: | |
- '**' | ||
|
||
jobs: | ||
test: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node: ['16', '14'] | ||
node: ['16'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -38,24 +38,79 @@ jobs: | |
|
||
- run: npm ci | ||
- run: npm run build | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node: ['16'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Cache node_modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-${{ matrix.node }}-test-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.node }}-test-${{ env.cache-name }}- | ||
|
||
- run: npm ci | ||
- run: npm test | ||
|
||
- name: Upload coverage | ||
- name: Upload coverage artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage | ||
name: coverage-${{ runner.os }} | ||
path: coverage/ | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
needs: [test] | ||
if: ${{ success() && github.actor != 'dependabot[bot]' }} | ||
# coverage: | ||
# runs-on: ubuntu-latest | ||
# needs: [test] | ||
# if: ${{ success() && github.actor != 'dependabot[bot]' }} | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/download-artifact@v2 | ||
# with: | ||
# name: coverage-${{ runner.os }} | ||
|
||
# - uses: paambaati/[email protected] | ||
# env: | ||
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
# with: | ||
# debug: true | ||
|
||
storybook: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node: ['16'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/download-artifact@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
name: coverage | ||
node-version: ${{ matrix.node }} | ||
|
||
- uses: paambaati/[email protected] # using 2.7.1 for issue: https://github.com/paambaati/codeclimate-action/issues/316 | ||
- name: Cache node_modules | ||
uses: actions/cache@v2 | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-${{ matrix.node }}-storybook-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-${{ matrix.node }}-storybook-${{ env.cache-name }}- | ||
|
||
- run: npm ci | ||
- run: npm run storybook:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.