Skip to content

Commit 2f71838

Browse files
authored
Merge pull request #203 from AFASSoftware/next-decade
Next decade
2 parents b6797ff + 23a0cbc commit 2f71838

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4471
-7772
lines changed

.eslintignore

Lines changed: 0 additions & 11 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/node.js.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,45 @@ jobs:
5151
name: v${{ steps.publish.outputs.version }}
5252
makeLatest: true
5353

54+
get-playwright-version:
55+
runs-on: ubuntu-latest
56+
outputs:
57+
version: ${{ steps.playwright-version.outputs.version }}
58+
steps:
59+
- uses: actions/checkout@v4
60+
- name: Get Playwright version from package-lock.json
61+
id: playwright-version
62+
run: |
63+
PLAYWRIGHT_VERSION=$(node -p "require('./package-lock.json').packages['node_modules/@playwright/test'].version")
64+
echo "version=$PLAYWRIGHT_VERSION" >> $GITHUB_OUTPUT
65+
66+
browser-tests:
67+
needs: get-playwright-version
68+
runs-on: ubuntu-latest
69+
container:
70+
image: mcr.microsoft.com/playwright:v${{ needs.get-playwright-version.outputs.version }}-noble
71+
steps:
72+
- uses: actions/checkout@v4
73+
- name: Install dependencies
74+
run: npm ci
75+
- name: Build maquette
76+
run: npm run dist
77+
- name: Install TodoMVC dependencies
78+
working-directory: examples/todomvc
79+
run: |
80+
npm install --no-save bower
81+
npx bower install --allow-root
82+
- name: Run Playwright tests
83+
working-directory: browser-tests
84+
run: npm test
85+
- name: Upload Playwright report
86+
uses: actions/upload-artifact@v4
87+
if: ${{ !cancelled() }}
88+
with:
89+
name: playwright-report
90+
path: browser-tests/playwright-report/
91+
retention-days: 30
92+
5493
permissions:
5594
id-token: write
5695
contents: write

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ build
33
node_modules
44
*.log
55

6+
# Playwright
7+
browser-tests/playwright-report/
8+
browser-tests/test-results/
9+
610
# useful file for debugging a mocha unit test from cloud9, file contents: var Mocha = require("mocha");var mocha = new Mocha();mocha.addFile("test/createDom");mocha.run();
711
sandbox.js
812

.husky/post-checkout

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/post-merge

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx --no-install tsa pre-commit
1+
echo "Checking formatting..."
2+
npx prettier --check 'src/**/*.ts' 'test/**/*.ts' 'tools/**/*.ts'

.husky/pre-push

Lines changed: 0 additions & 4 deletions
This file was deleted.

.mocharc.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
require:
2-
- ts-node/register/transpile-only
1+
node-option:
2+
- import=ts-node/register/transpile-only
3+
- no-warnings
34
exit: true
45
recursive: true
56
extension:

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/**/*
22
!/dist/**/*
3-
!/polyfills/**/*
43
!/README.md

0 commit comments

Comments
 (0)