-
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.
refactor: Update Docusaurus & ESLint configuration (#522)
[WIP] Co-authored-by: Salvydas Lukosius <[email protected]>
- Loading branch information
Showing
126 changed files
with
3,608 additions
and
20,315 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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: "📊 Argos CI" | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
take-screenshots: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "⤵️ Check out code from GitHub" | ||
uses: actions/checkout@v4 | ||
- name: "📦 Setup pnpm" | ||
uses: pnpm/[email protected] | ||
- name: "⎔ Setup node" | ||
uses: actions/[email protected] | ||
with: | ||
node-version: current | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm i | ||
|
||
- name: Install Playwright browsers | ||
run: pnpm playwright install --with-deps chromium | ||
|
||
- name: Build the website | ||
run: pnpm build:en | ||
|
||
- name: Take screenshots with Playwright | ||
run: pnpm playwright test | ||
|
||
- name: Upload screenshots to Argos | ||
run: pnpm argos upload ./screenshots |
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 |
---|---|---|
|
@@ -16,7 +16,7 @@ on: | |
- "package.json" | ||
- "pnpm-lock.yaml" | ||
- "babel.config.js" | ||
- "docusaurus.config.js" | ||
- "docusaurus.config.ts" | ||
- "src/**" | ||
- "static/**" | ||
- "!docs/**" | ||
|
@@ -40,14 +40,11 @@ jobs: | |
name: " 📊 Build Size Report" | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
permissions: | ||
checks: write # for preactjs/compressed-size-action to create and update the checks | ||
contents: read # for actions/checkout to fetch code | ||
issues: write # for preactjs/compressed-size-action to create comments | ||
pull-requests: write # for preactjs/compressed-size-action to write a PR review | ||
issues: write # for preactjs/compressed-size-action to create comments | ||
steps: | ||
- name: "⤵️ Check out code from GitHub" | ||
uses: actions/checkout@v4 | ||
|
@@ -58,7 +55,7 @@ jobs: | |
- name: "⎔ Setup node" | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: current | ||
cache: "pnpm" | ||
- run: pnpm i --prod | ||
- uses: preactjs/compressed-size-action@v2 | ||
|
@@ -74,9 +71,6 @@ jobs: | |
name: 💹 Build Time Perf | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18] | ||
steps: | ||
- name: "⤵️ Check out code from GitHub" | ||
uses: actions/checkout@v4 | ||
|
@@ -87,7 +81,7 @@ jobs: | |
- name: "⎔ Setup node" | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: current | ||
cache: "pnpm" | ||
- run: pnpm i --prod | ||
# Ensure build with a cold cache does not increase too much | ||
|
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,4 +1,3 @@ | ||
# @format | ||
--- | ||
name: 🔒 Lock closed issues and PRs | ||
|
||
|
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 |
---|---|---|
|
@@ -11,12 +11,12 @@ plugins: | |
- id: trunk | ||
uri: https://github.com/trunk-io/plugins | ||
ref: v1.3.0 | ||
import_to_global: true | ||
merge: | ||
required_statuses: | ||
- Trunk Check | ||
lint: | ||
disabled: | ||
- terrascan | ||
- trufflehog | ||
- trivy | ||
- checkov | ||
|
@@ -25,7 +25,7 @@ lint: | |
- yamllint | ||
- shellcheck | ||
enabled: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
@@ -50,7 +50,7 @@ lint: | |
- .trunk/config/* | ||
- linters: [gitleaks] | ||
paths: | ||
- docusaurus.config.js | ||
- docusaurus.config.ts | ||
- linters: [markdownlint] | ||
paths: | ||
- src/components/Markdown/* | ||
|
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
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.