Skip to content

Commit f565e2b

Browse files
authored
testing something (sveltejs#221)
* testing something * separate build from test
1 parent 5cebfd4 commit f565e2b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/node.js.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ name: CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ['main']
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ['main']
88

99
env:
1010
# we call `pnpm playwright install` instead
1111
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
1212

1313
jobs:
1414
build:
15-
1615
runs-on: ubuntu-latest
1716

1817
strategy:
@@ -21,13 +20,14 @@ jobs:
2120
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2221

2322
steps:
24-
- uses: actions/checkout@v3
25-
- uses: pnpm/[email protected]
26-
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v3
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
cache: 'pnpm'
31-
- run: pnpm install --frozen-lockfile
32-
- run: pnpm playwright install chromium
33-
- run: pnpm test
23+
- uses: actions/checkout@v3
24+
- uses: pnpm/[email protected]
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'pnpm'
30+
- run: pnpm install --frozen-lockfile
31+
- run: pnpm playwright install chromium
32+
- run: pnpm build
33+
- run: pnpm test

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { PlaywrightTestConfig } from '@playwright/test';
22

33
const config: PlaywrightTestConfig = {
44
webServer: {
5-
command: 'pnpm build && pnpm preview',
5+
command: 'pnpm preview',
66
port: 4173
77
}
88
};

0 commit comments

Comments
 (0)