File tree 5 files changed +17
-14
lines changed
5 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,13 @@ jobs:
18
18
- name : Checkout 🛎️
19
19
uses : actions/checkout@v4
20
20
21
+ - name : Set BASE_PATH
22
+ run : echo "BASE_PATH=/${{ github.event.repository.name }}" >> $GITHUB_ENV
23
+
21
24
- name : Install and Build 🔧
22
25
run : |
23
26
npm ci
24
27
npm run build
25
- npm run obfuscate
26
28
27
29
- name : Deploy 🚀
28
30
uses : JamesIves/github-pages-deploy-action@v4
Original file line number Diff line number Diff line change 21
21
- ' .env.*'
22
22
permissions :
23
23
contents : write
24
+ pull-requests : write
24
25
concurrency : preview-${{ github.ref }}
25
26
26
27
jobs :
@@ -30,11 +31,13 @@ jobs:
30
31
- name : Checkout
31
32
uses : actions/checkout@v3
32
33
34
+ - name : Set BASE_PATH
35
+ run : echo "BASE_PATH=/${{ github.event.repository.name }}/pr-preview/pr-${{ github.event.number }}" >> $GITHUB_ENV
36
+
33
37
- name : Install and Build
34
38
run : |
35
39
npm ci
36
40
npm run build
37
- npm run obfuscate
38
41
39
42
- name : Deploy preview
40
43
uses : rossjrw/pr-preview-action@v1
Original file line number Diff line number Diff line change 1
1
# Run unit and integration tests.
2
2
#
3
- # Based on https://playwright.dev/docs/ci#via-containers .
3
+ # Based on https://playwright.dev/docs/next/ ci#github-actions .
4
4
name : Test
5
5
on :
6
6
push :
10
10
branches : main
11
11
jobs :
12
12
test :
13
- name : ' Test '
13
+ timeout-minutes : 5
14
14
runs-on : ubuntu-latest
15
- container :
16
- image : mcr.microsoft.com/playwright
17
- options : --user 1001
18
15
steps :
19
16
- uses : actions/checkout@v4
20
17
- uses : actions/setup-node@v4
21
18
with :
22
19
node-version : lts/*
23
20
- name : Install dependencies
24
- run : |
25
- npx playwright install --with-deps
26
- npm ci
27
- - name : Run tests
28
- run : npm run test
21
+ run : npm ci
22
+ - name : Run unit tests
23
+ run : npx vitest --run
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { TelemetryServiceMock } from './telemetry/service_mock';
17
17
18
18
const init_start = performance . now ( ) ;
19
19
20
- export const log = new Log ( IS_PRODUCTION_BUILD ? Log . INFO : Log . TRACE ) ;
20
+ export const log = new Log ( IS_PRODUCTION_BUILD ? Log . TRACE : Log . TRACE ) ;
21
21
22
22
log . debug ( init_start , 'Initializing...' ) ;
23
23
log . debug ( 'Config:' , {
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ const config = {
11
11
// adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.
12
12
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
13
13
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
14
- adapter : adapter ( )
14
+ adapter : adapter ( ) ,
15
+ paths : {
16
+ base : process . env . BASE_PATH || ''
17
+ }
15
18
}
16
19
} ;
17
20
You can’t perform that action at this time.
0 commit comments