-
Notifications
You must be signed in to change notification settings - Fork 1
Prepare build workflow in GitHub #2
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 6 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e09e67e
Sync files from GitLab (#1)
MartinGroscheTT a260f2b
Add GitHub Actions workflow for building extension (#1)
MartinGroscheTT 2aca24d
Disable ESLint and TSLint rules in test setup for chrome API mocking …
MartinGroscheTT 8661cd2
Update import statement to use .js extension for types (#1)
MartinGroscheTT 43dad4f
Upgrade dependencies and clean project (#1)
MartinGroscheTT e0dc993
Fix zip file creation path in GitHub Actions workflow (#1)
MartinGroscheTT 07a84ca
Update GitHub Actions workflow to upload built extension files direct…
MartinGroscheTT b8c3313
Update review notes (#1)
MartinGroscheTT f7ce39d
Sync internal GitLab repo (#1)
MartinGroscheTT 27b899b
Refactor GitHub Actions workflow to separate testing into its own fil…
MartinGroscheTT 0fa7196
Remove workflow_dispatch trigger from test workflow configuration (#1)
MartinGroscheTT 9c90212
Refactor build workflow to use separate test workflow file (#1)
MartinGroscheTT 1d7e1de
Enhance test workflow to support multiple Node.js versions (#1)
MartinGroscheTT 4c2025b
Update documentation structure and add CI information (#1)
MartinGroscheTT 06b6e64
Provide REUSE compliance check workflow (#1)
MartinGroscheTT f6f6de8
Add SPDX SBOM generation and upload to REUSE workflow (#1)
MartinGroscheTT df1115c
Update Developer Guide to clarify SBOM output location in REUSE workf…
MartinGroscheTT e410125
Rename workflow (#1)
MartinGroscheTT 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,67 @@ | ||
| name: Build Chrome Extension | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [18, 20] | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'npm' | ||
| cache-dependency-path: 'package-lock.json' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Lint code | ||
| run: npm run lint | ||
|
|
||
| - name: Run tests | ||
| run: npm test | ||
| build: | ||
| needs: test | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| browser: [chrome, firefox] | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Node v20 | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 20 | ||
| cache: 'npm' | ||
| cache-dependency-path: 'package-lock.json' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Build extension for ${{ matrix.browser }} | ||
| run: npm run build-${{ matrix.browser }} | ||
|
|
||
| - name: Upload extension zip | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ matrix.browser }}-extension | ||
| path: dist/* | ||
| if-no-files-found: error | ||
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 |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| { | ||
| "required": ["ts-node/register", "tsconfig-paths/register"], | ||
| "extension": ["ts", "js"], | ||
| "loader": "ts-node/esm" | ||
| "loader": "ts-node/esm", | ||
| "spec": ["./test/setup.ts", "./test/**/*.ts"] | ||
| } |
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.