-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update design match website and includes cover to article
- Loading branch information
Showing
338 changed files
with
25,214 additions
and
16,112 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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
BASE_URL=/ | ||
LOCO_API_KEY=TgRmVdZN4YTwrM_V5ZPREs9ypXFGlYM5 | ||
ALGOLIA_APP_ID=5IGTHBX5JS | ||
ALGOLIA_INDEX=blog_eleven_v2_dev | ||
ALGOLIA_API_INDEXING_KEY=ec44181a2193f585175620ba8239dfb0 | ||
|
||
VITE_IS_DEBUG=true | ||
VITE_HOST_URL=http://localhost:5173 | ||
VITE_ALGOLIA_APP_ID=5IGTHBX5JS | ||
VITE_ALGOLIA_INDEX=blog_eleven_v2_dev | ||
VITE_ALGOLIA_API_KEY=0ff075bf3ef8942ec3c6481f9aa05ae5 | ||
VITE_GTM_ID=GTM-NB8NF97 | ||
VITE_GOOGLE_SITE_VERIFICATION=google-site-verification | ||
|
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,14 @@ | ||
name: restore-npm-cache | ||
description: Restore NPM Cache | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Restore NPM Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "**/node_modules" | ||
key: cache-node-modules-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: cache-node-modules-npm run | ||
- name: Prepare project | ||
shell: bash | ||
run: npm run prepare |
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,99 @@ | ||
name: Run checks and tests | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
validate-markdown: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore NPM Cache | ||
uses: ./.github/actions/restore-npm-cache | ||
|
||
- name: Validate markdown authors and posts | ||
id: validate_markdown | ||
run: npm run validate-markdown --ci | ||
|
||
- name: Add a comment to the PR after failed markdown validation | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' && failure() | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
number: ${{ github.event.pull_request.number }} | ||
header: validate-markdown | ||
message: | | ||
#### Markdown invalid 🖌 | ||
The markdown of the file **${{ steps.validate_markdown.outputs.filePath }}** is invalid ! | ||
> ${{ steps.validate_markdown.outputs.reason }} | ||
- name: Remove a comment to the PR after success markdown validation | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
if: github.event_name == 'pull_request' && success() | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
number: ${{ github.event.pull_request.number }} | ||
header: validate-markdown | ||
delete: true | ||
|
||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore NPM Cache | ||
uses: ./.github/actions/restore-npm-cache | ||
|
||
- name: Lint code | ||
run: npm run lint:es | ||
|
||
compile: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore NPM Cache | ||
uses: ./.github/actions/restore-npm-cache | ||
|
||
- name: Run Compile TypeScript | ||
run: npx tsc | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore NPM Cache | ||
uses: ./.github/actions/restore-npm-cache | ||
|
||
- name: Run Tests | ||
run: npm run test | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore NPM Cache | ||
uses: ./.github/actions/restore-npm-cache | ||
|
||
- name: Build Design System | ||
run: npm run build | ||
|
||
build-storybook: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Restore NPM Cache | ||
uses: ./.github/actions/restore-npm-cache | ||
|
||
- name: Build Storybook | ||
run: npm run build:storybook |
34 changes: 34 additions & 0 deletions
34
.github/workflows/continuous-integration-and-deployment.yml
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,34 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
setup: | ||
uses: ./.github/workflows/setup-nodejs-and-install-dependencies.yml | ||
checks-and-tests: | ||
needs: setup | ||
uses: ./.github/workflows/checks-and-tests.yml | ||
deploy: | ||
needs: checks-and-tests | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
AWS_REGION: ${{ vars.AWS_REGION }} | ||
AWS_BUCKET_NAME: ${{ vars.AWS_BUCKET_NAME }} | ||
secrets: | ||
AWS_ROLE_TO_ASSUME: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | ||
ALGOLIA_INDEX_DEV: ${{ secrets.ALGOLIA_INDEX_DEV }} | ||
ALGOLIA_API_INDEXING_KEY_DEV: ${{ secrets.ALGOLIA_API_INDEXING_KEY_DEV }} | ||
ALGOLIA_API_SEARCH_KEY_DEV: ${{ secrets.ALGOLIA_API_SEARCH_KEY_DEV }} | ||
GTM_ID_DEV: ${{ secrets.GTM_ID_DEV }} | ||
ALGOLIA_INDEX_PRODUCTION: ${{ secrets.ALGOLIA_INDEX_PRODUCTION }} | ||
ALGOLIA_API_INDEXING_KEY_PRODUCTION: ${{ secrets.ALGOLIA_API_INDEXING_KEY_PRODUCTION }} | ||
ALGOLIA_API_SEARCH_KEY_PRODUCTION: ${{ secrets.ALGOLIA_API_SEARCH_KEY_PRODUCTION }} | ||
GTM_ID_PRODUCTION: ${{ secrets.GTM_ID_PRODUCTION }} | ||
GOOGLE_SITE_VERIFICATION: ${{ secrets.GOOGLE_SITE_VERIFICATION }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: PR Closed | |
|
||
on: | ||
pull_request_target: | ||
types: [closed] | ||
types: [ closed ] | ||
|
||
jobs: | ||
pr-closed: | ||
|
Oops, something went wrong.