Skip to content
Merged
Show file tree
Hide file tree
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 Apr 1, 2025
a260f2b
Add GitHub Actions workflow for building extension (#1)
MartinGroscheTT Apr 1, 2025
2aca24d
Disable ESLint and TSLint rules in test setup for chrome API mocking …
MartinGroscheTT Apr 1, 2025
8661cd2
Update import statement to use .js extension for types (#1)
MartinGroscheTT Apr 1, 2025
43dad4f
Upgrade dependencies and clean project (#1)
MartinGroscheTT Apr 2, 2025
e0dc993
Fix zip file creation path in GitHub Actions workflow (#1)
MartinGroscheTT Apr 2, 2025
07a84ca
Update GitHub Actions workflow to upload built extension files direct…
MartinGroscheTT Apr 2, 2025
b8c3313
Update review notes (#1)
MartinGroscheTT Apr 3, 2025
f7ce39d
Sync internal GitLab repo (#1)
MartinGroscheTT Apr 7, 2025
27b899b
Refactor GitHub Actions workflow to separate testing into its own fil…
MartinGroscheTT Apr 7, 2025
0fa7196
Remove workflow_dispatch trigger from test workflow configuration (#1)
MartinGroscheTT Apr 7, 2025
9c90212
Refactor build workflow to use separate test workflow file (#1)
MartinGroscheTT Apr 7, 2025
1d7e1de
Enhance test workflow to support multiple Node.js versions (#1)
MartinGroscheTT Apr 7, 2025
4c2025b
Update documentation structure and add CI information (#1)
MartinGroscheTT Apr 8, 2025
06b6e64
Provide REUSE compliance check workflow (#1)
MartinGroscheTT Apr 8, 2025
f6f6de8
Add SPDX SBOM generation and upload to REUSE workflow (#1)
MartinGroscheTT Apr 8, 2025
df1115c
Update Developer Guide to clarify SBOM output location in REUSE workf…
MartinGroscheTT Apr 8, 2025
e410125
Rename workflow (#1)
MartinGroscheTT Apr 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/build.yml
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
4 changes: 3 additions & 1 deletion .mocharc.json
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"]
}
Loading