-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improves tooling with vitest and pnpm (#94)
fix(cli): created accounts have a trailing parenthesis in their id fix(web): avatar image can be missing in authenticated page header feat(cli): displays command specific help message on error chore: replaces jest with vitest chore: replaces npm with pnpm
- Loading branch information
Showing
180 changed files
with
11,446 additions
and
28,067 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ apps/games/assets/ | |
apps/games/descriptors/ | ||
coverage/ | ||
dist/ | ||
dist-atelier/ | ||
node_modules/ | ||
scans/ | ||
!.storybook/ |
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 |
---|---|---|
|
@@ -15,23 +15,25 @@ jobs: | |
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- name: Check code out | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
|
||
- name: Set Node.js ${{ matrix.node-version }} up | ||
- name: Intall Pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Set Node.js up | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version-file: '.nvmrc' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: npm ci --ignore-scripts | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: Build artifacts | ||
run: ./hosting/build.sh | ||
|
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 |
---|---|---|
|
@@ -19,14 +19,22 @@ jobs: | |
- name: Check code out | ||
uses: actions/checkout@v3 | ||
|
||
- name: Intall Pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Set Node.js up | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: Run linter | ||
run: pnpm lint | ||
|
||
cli_tests: | ||
name: CLI tests | ||
|
@@ -38,17 +46,24 @@ jobs: | |
- name: Check code out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Intall Pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Set Node.js up | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: Run CLI test | ||
run: npm run test:cli | ||
run: pnpm test:cli | ||
env: | ||
TZ: CET | ||
|
||
- name: Send coverage to Codacy | ||
if: always() | ||
|
@@ -68,17 +83,24 @@ jobs: | |
- name: Check code out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Intall Pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Set Node.js up | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: Run server test | ||
run: npm run test:server | ||
run: pnpm test:server | ||
env: | ||
TZ: CET | ||
|
||
- name: Send coverage to Codacy | ||
if: always() | ||
|
@@ -98,20 +120,29 @@ jobs: | |
- name: Check code out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Intall Pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Set Node.js up | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: Run UI unit tests | ||
run: npm run test:web | ||
run: pnpm test:web | ||
env: | ||
WEB_GAME_ASSETS_URL: https://localhost:3000/games | ||
WEB_GRAPHQL_URL: https://localhost:3000/graphql | ||
TZ: CET | ||
WEB_USE_GITHUB_PROVIDER: true | ||
WEB_USE_GOOGLE_PROVIDER: true | ||
WEB_GRAPHQL_URL: http://localhost:3001/graphql | ||
WEB_GAME_ASSETS_URL: http://localhost:3001/games | ||
WEB_AUTH_URL: http://localhost:3001/auth | ||
|
||
- name: Send coverage to Codacy | ||
if: always() | ||
|
@@ -131,21 +162,27 @@ jobs: | |
- name: Check code out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Intall Pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Set Node.js up | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: 'npm' | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: Install Playwright | ||
run: npx playwright install --with-deps chromium | ||
run: pnpm dlx playwright install --with-deps chromium | ||
|
||
- name: Run UI integration tests | ||
run: npm run test:integration | ||
run: pnpm test:integration | ||
env: | ||
TZ: CET | ||
WEB_GAME_ASSETS_URL: http://localhost:3001/games | ||
WEB_GRAPHQL_URL: http://localhost:3001/graphql | ||
WEB_AUTH_URL: http://localhost:3001/auth | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
strict-peer-dependencies=false |
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 |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
16.17.1 |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,3 +116,4 @@ function help() { | |
--help/-h Display help for this command | ||
` | ||
} | ||
catalogCommand.help = help |
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 |
---|---|---|
|
@@ -87,3 +87,4 @@ function help() { | |
--help/-h Display help for this command | ||
` | ||
} | ||
grantCommand.htelp = help |
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.
8a0ef29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
tabulous-atelier – ./apps/web
tabulous-atelier-git-main-feugy.vercel.app
tabulous-atelier.vercel.app
tabulous-atelier-feugy.vercel.app
8a0ef29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
tabulous – ./apps/web
tabulous.vercel.app
tabulous-git-main-feugy.vercel.app
tabulous-feugy.vercel.app
tabulous.fr