Skip to content

Commit

Permalink
feat: add e2e & aegir test support (#115)
Browse files Browse the repository at this point in the history
* feat: allow explicit sw de-registering

* fix: tsc generates js files

* tmp: in progress build...

* test-esbuild.js script works.. need to fix names

* chore: making progress

* feat: build works

* chore: some cleanup

* fix: generate styles

* chore: cleanup build scripts

* fix: npm run start

* feat: playwright testing support

* fix: npm test scripts

* chore: remove esbuild config from aegir

* chore: remove mentions of dist-esbuild

* chore: dep-check fixes

* chore: cleanup global playwright setup file

* chore: apply suggestions from code review

* chore: remove aegir patch

* chore: fix pr comment suggestion lint err

* ci: install playwright with deps
  • Loading branch information
SgtPooki authored Mar 15, 2024
1 parent 8ec199c commit bf6a382
Show file tree
Hide file tree
Showing 34 changed files with 565 additions and 163 deletions.
13 changes: 11 additions & 2 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/** @type {import('aegir').PartialOptions} */
export default {
test: { },
lint: {
files: ['src/**/*.ts', 'src/**/*.tsx', 'tests/**/*', 'test/**/*.js']
files: [
'src/**/*.[jt]s',
'src/**/*.[jt]sx',
'test/**/*.[jt]s',
'test/**/*.[jt]sx',
'test-e2e/**/*.[jt]s'
]
},
dependencyCheck: {
ignore: [
Expand All @@ -19,8 +26,10 @@ export default {
],
productionIgnorePatterns: [
'webpack.config.js',
'playwright.config.js',
'test-e2e',
'.aegir.js',
'/tests',
'/test',
'dist'
]
}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npx playwright install --with-deps
- run: npm run --if-present test:chrome
- uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # v3.1.5
with:
Expand Down Expand Up @@ -100,6 +101,7 @@ jobs:
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npx playwright install --with-deps
- run: npm run --if-present test:firefox
- uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # v3.1.5
with:
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ test-build
.LSOverride

# Icon must end with two \r
Icon
Icon


# Thumbnails
._*
Expand Down Expand Up @@ -217,3 +218,9 @@ $RECYCLE.BIN/

# End of https://www.toptal.com/developers/gitignore/api/macos,node,windows,linux
.vscode
dist-tsc
playwright-report
.envrc
.direnv
*.nix
.coverage
Loading

0 comments on commit bf6a382

Please sign in to comment.