Skip to content

Commit

Permalink
ci: use Node 20
Browse files Browse the repository at this point in the history
- While the package says we support Node 18 the unit tests are using Node 20 features
- Since the e2e loader test was added we now need to 'build' in 'pretest'
- Fix prettier violations

Signed-off-by: Ashley Claymore <[email protected]>
  • Loading branch information
acutmore authored and tchetwin committed Sep 18, 2024
1 parent 45dd291 commit 8c610b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ jobs:
name: Test + Lint + Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run check
- run: npm run format:check
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"gen-types": "tsc -p ./src/tsconfig.json --emitDeclarationOnly",
"fixtures": "node --import=#r ./tests/fixture/_run.ts",
"fixtures:watch": "node --watch-path ./tests/fixture/cases --import=#r ./tests/fixture/_run.ts",
"pretest": "npm run build",
"test": "node --test --import=#r ./tests/*.test.ts",
"test-ecosystem": "node --test --import=#r ./tests/ecosystem/ecosystem.test.ts",
"format": "prettier . -w",
Expand Down
2 changes: 1 addition & 1 deletion website/_includes/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</head>
<body>
<header style="grid-column-start: 1; grid-column-end: -1; display: grid; grid-template-columns: 1fr 1fr">
<div style="background-color: #3178c6; flex-grow: 1; text-align: right;">
<div style="background-color: #3178c6; flex-grow: 1; text-align: right">
<h1 class="cds-t-h1">ts-</h1>
</div>
<div style="background-color: #f90; flex-grow: 1">
Expand Down
2 changes: 1 addition & 1 deletion website/play/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</head>
<body>
<div class="tsbs-wrapper">
<div style="background-color: #3178c6; grid-area: header-ts; text-align: right;">
<div style="background-color: #3178c6; grid-area: header-ts; text-align: right">
<h1 class="cds-t-h1">ts-</h1>
</div>
<div style="background-color: #f90; grid-area: header-js">
Expand Down

0 comments on commit 8c610b0

Please sign in to comment.