File tree Expand file tree Collapse file tree 2 files changed +6
-52
lines changed Expand file tree Collapse file tree 2 files changed +6
-52
lines changed Original file line number Diff line number Diff line change 38
38
NUXT_PUBLIC_FIREBASE_STORAGE_BUCKET : fake
39
39
NUXT_PUBLIC_STRIPE_MONTHLY_PRICE :
40
40
jobs :
41
- build :
42
- runs-on : ubuntu-latest
43
- steps :
44
- - uses : actions/checkout@v3
45
- - uses : actions/setup-node@v3
46
- with :
47
- node-version : 16
48
- cache : yarn
49
- - run : yarn install --immutable
50
- - run : yarn build
51
41
test-cypress :
52
42
runs-on : ubuntu-latest
53
43
steps :
@@ -56,35 +46,21 @@ jobs:
56
46
with :
57
47
node-version : 16
58
48
cache : yarn
59
- - run : docker-compose up -d
60
- -
uses :
cypress-io/[email protected]
61
- with :
62
- config : baseUrl=http://localhost:8889
63
- build : yarn build
64
- start : yarn preview:latest
65
- wait-on : http://localhost:32777
66
- test-cypress-nuxt :
67
- runs-on : ubuntu-latest
68
- steps :
69
- - uses : actions/checkout@v3
70
- - uses : actions/setup-node@v3
71
- with :
72
- node-version : 16
73
- cache : yarn
49
+ - run : yarn install --immutable
74
50
- run : docker-compose up -d
75
51
-
uses :
cypress-io/[email protected]
76
52
with :
77
53
config : baseUrl=http://localhost:3000
78
- build : yarn nuxt: build
79
- start : yarn nuxt: preview
54
+ build : yarn build
55
+ start : yarn preview
80
56
wait-on : ' http://localhost:3000,http://localhost:32777'
81
57
- uses : actions/upload-artifact@v3
82
58
if : failure()
83
59
with :
84
60
name : cypress-screenshots
85
61
path : test/cypress/screenshots
86
62
- uses : actions/upload-artifact@v3
87
- if : always ()
63
+ if : failure ()
88
64
with :
89
65
name : cypress-videos
90
66
path : test/cypress/videos
Original file line number Diff line number Diff line change 3
3
pull_request :
4
4
workflow_dispatch :
5
5
env :
6
- VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
7
6
NODE_OPTIONS : --max-old-space-size=4096
8
7
NUXT_PUBLIC_CDN_URL : ${{ secrets.VITE_APP_CDN_URL }}
9
8
NUXT_PUBLIC_DISCORD_INVITE_LINK : ${{ secrets.VITE_DISCORD_INVITE_LINK }}
27
26
NUXT_PUBLIC_FIREBASE_PROJECT_ID : ${{ secrets.VUE_APP_FIREBASE_PROJECT_ID }}
28
27
NUXT_PUBLIC_FIREBASE_STORAGE_BUCKET : ${{ secrets.VUE_APP_FIREBASE_STORAGE_BUCKET }}
29
28
NUXT_PUBLIC_STRIPE_MONTHLY_PRICE : ${{ secrets.VUE_APP_STRIPE_MONTHLY_PRICE }}
30
- OCTO_NAME : Octo (Test)
29
+ OCTO_NAME : Octo (Preview)
30
+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
31
31
jobs :
32
32
deploy_vercel :
33
33
env :
51
51
run : |
52
52
url=`yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}`
53
53
echo "::set-output name=url::$url"
54
- deploy_vercel_nuxt :
55
- env :
56
- VERCEL_PROJECT_ID : ${{ secrets.VERCEL_TEST_PROJECT_ID }}
57
- environment :
58
- name : preview
59
- url : ${{ steps.deploy.outputs.url }}
60
- runs-on : ubuntu-latest
61
- steps :
62
- - uses : actions/checkout@v3
63
- - uses : actions/setup-node@v3
64
- with :
65
- node-version : 16
66
- cache : yarn
67
- - run : yarn install --immutable
68
- - run : yarn vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
69
- - run : yarn vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
70
- - run : cp ./.vercel/output/static/manifest.webmanifest ./.vercel/output/static/manifest.json
71
- - run : cp ./.vercel/output/static/sw.js ./.vercel/output/static/service-worker.js
72
- - id : deploy
73
- run : |
74
- url=`yarn vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}`
75
- echo "::set-output name=url::$url"
You can’t perform that action at this time.
0 commit comments