-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore(ci): Split monolithic ci.yml into separate workflow files #1408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,64 @@ | ||
| name: CI Browser Extension | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - 'browser/**' | ||
| - '.tool-versions' | ||
| - '.github/workflows/ci-browser.yml' | ||
| pull_request: | ||
| branches: [main] | ||
| paths: | ||
| - 'browser/**' | ||
| - '.tool-versions' | ||
| - '.github/workflows/ci-browser.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint-browser: | ||
| name: Lint Browser Extension | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version-file: .tool-versions | ||
| cache: npm | ||
| - name: Install browser extension dependencies | ||
| working-directory: browser | ||
| run: npm ci | ||
| - name: Prepare WXT | ||
| working-directory: browser | ||
| run: npm run prepare | ||
| - name: Lint browser extension | ||
| working-directory: browser | ||
| run: npm run lint | ||
|
|
||
| test-browser: | ||
| name: Test Browser Extension | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version-file: .tool-versions | ||
| cache: npm | ||
| - name: Install browser extension dependencies | ||
| working-directory: browser | ||
| run: npm ci | ||
| - name: Prepare WXT | ||
| working-directory: browser | ||
| run: npm run prepare | ||
| - name: Test browser extension | ||
| working-directory: browser | ||
| run: npm run test | ||
This file contains hidden or 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,55 @@ | ||
| name: CI Quality | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths-ignore: | ||
| - '**/*.md' | ||
| - 'LICENSE' | ||
| - '.github/releases/**' | ||
| pull_request: | ||
| branches: [main] | ||
| paths-ignore: | ||
| - '**/*.md' | ||
| - 'LICENSE' | ||
| - '.github/releases/**' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint-actionlint: | ||
| name: Lint GitHub Actions (actionlint) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: rhysd/actionlint@393031adb9afb225ee52ae2ccd7a5af5525e03e8 # v1.7.11 | ||
| with: | ||
| args: "-color" | ||
|
|
||
| lint-zizmor: | ||
| name: Lint GitHub Actions (zizmor) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2 | ||
| with: | ||
| advanced-security: "false" | ||
| annotations: "true" | ||
| config: .github/zizmor.yml | ||
|
|
||
| check-typos: | ||
| name: Check typos | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: crate-ci/typos@631208b7aac2daa8b707f55e7331f9112b0e062d # v1.44.0 |
This file contains hidden or 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,97 @@ | ||
| name: CI Website | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: | ||
| - 'website/**' | ||
| - 'src/**' | ||
| - 'package.json' | ||
| - 'package-lock.json' | ||
| - '.tool-versions' | ||
| - '.github/workflows/ci-website.yml' | ||
| pull_request: | ||
| branches: [main] | ||
| paths: | ||
| - 'website/**' | ||
| - 'src/**' | ||
| - 'package.json' | ||
| - 'package-lock.json' | ||
| - '.tool-versions' | ||
| - '.github/workflows/ci-website.yml' | ||
|
yamadashy marked this conversation as resolved.
|
||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint-website-client: | ||
| name: Lint Website Client | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version-file: .tool-versions | ||
| cache: npm | ||
| - name: Install website client dependencies | ||
| working-directory: website/client | ||
| run: npm ci | ||
| - name: Lint website client | ||
| working-directory: website/client | ||
| run: npm run lint | ||
|
|
||
| lint-website-server: | ||
| name: Lint Website Server | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version-file: .tool-versions | ||
| cache: npm | ||
| - name: Build and link local repomix | ||
| run: | | ||
| npm ci | ||
| npm run build | ||
| npm link | ||
| - name: Install website server dependencies | ||
| working-directory: website/server | ||
| run: | | ||
| npm ci | ||
| npm link repomix | ||
| - name: Lint website server | ||
| working-directory: website/server | ||
| run: npm run lint | ||
|
|
||
| bundle-website-server: | ||
| name: Bundle Website Server | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version-file: .tool-versions | ||
| cache: npm | ||
| - name: Build and link local repomix | ||
| run: | | ||
| npm ci | ||
| npm run build | ||
| npm link | ||
| - name: Install website server dependencies | ||
| working-directory: website/server | ||
| run: | | ||
| npm ci | ||
| npm link repomix | ||
| - name: Bundle website server | ||
| working-directory: website/server | ||
| run: npm run bundle | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.