File tree Expand file tree Collapse file tree 6 files changed +108
-366
lines changed Expand file tree Collapse file tree 6 files changed +108
-366
lines changed Original file line number Diff line number Diff line change 9
9
timeout-minutes : 60
10
10
runs-on : ubuntu-latest
11
11
steps :
12
+ - name : Check out backend
13
+ uses : actions/checkout@v4
14
+ with :
15
+ repository : brocoders/nestjs-boilerplate
16
+ # Use token for private repository
17
+ # token: ${{ secrets.CI_PAT }}
18
+ path : backend
19
+ - run : cd backend && cp env-example-document .env
20
+ - run : cd backend && sed -i 's/APP_PORT=3000/APP_PORT=3001/g' .env
21
+ - run : cd backend && sed -i 's/BACKEND_DOMAIN=http:\/\/localhost:3000/BACKEND_DOMAIN=http:\/\/localhost:3001/g' .env
22
+ - name : Run backend
23
+ # print output of the command to file and store it as artifact
24
+ run : cd backend && docker compose -f docker-compose.document.yaml up > ${{ runner.temp }}/backend.log 2>&1 &
25
+ - run : cd backend && sed -i 's/\r//g' wait-for-it.sh
26
+ - run : cd backend && ./wait-for-it.sh localhost:3001 -- echo "Backend is up"
27
+
12
28
- uses : actions/checkout@v4
13
29
- uses : actions/setup-node@v4
14
30
with :
15
- node-version : 18
31
+ node-version : 22
16
32
- name : Install dependencies
17
33
run : npm ci
34
+ - name : Run lint
35
+ run : npm run lint
18
36
- name : Install Playwright Browsers
19
37
run : npx playwright install --with-deps
20
38
- name : Run Playwright tests
24
42
with :
25
43
name : playwright-report
26
44
path : playwright-report/
45
+ retention-days : 30
46
+ - uses : actions/upload-artifact@v4
47
+ if : ${{ !cancelled() }}
48
+ with :
49
+ name : backend-log
50
+ path : ${{ runner.temp }}/backend.log
27
51
retention-days : 30
Original file line number Diff line number Diff line change 1
- NEXT_PUBLIC_API_URL=https://nestjs-boilerplate-test.herokuapp.com/api
1
+ # If you don't want to run the backend locally, just replace
2
+ # http://localhost:3001/api with https://nestjs-boilerplate-test.herokuapp.com/api
3
+ NEXT_PUBLIC_API_URL=http://localhost:3001/api
2
4
3
5
NEXT_PUBLIC_IS_GOOGLE_AUTH_ENABLED=true
4
6
NEXT_PUBLIC_GOOGLE_CLIENT_ID=778828327699-3hu034kj1u76k4o5qla8221ovtbgl2g0.apps.googleusercontent.com
@@ -10,10 +12,3 @@ NEXT_PUBLIC_IS_SIGN_UP_ENABLED=true
10
12
11
13
# Support "local", "s3", "s3-presigned"
12
14
NEXT_PUBLIC_FILE_DRIVER=local
13
-
14
- # We store user and password in ENV for testing purposes only
15
- TEST_IMAP_USER=juwan.herzog61@ethereal.email
16
- TEST_IMAP_PASSWORD=SMSTVykf66Pw3NYPg6
17
- TEST_IMAP_HOST=imap.ethereal.email
18
- TEST_IMAP_PORT=993
19
- TEST_IMAP_TLS=true
You can’t perform that action at this time.
0 commit comments