forked from kodadot/nft-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 949 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test & Build app
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main, beta, production, nuxt]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/pnpm-install
- name: Run Test
run: pnpm test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/pnpm-install
- name: Run Build
run: pnpm generate
- run: wc -l ./.nuxt/dist/server/client.manifest.mjs
- run: stat -c "%s" ./.nuxt/dist/server/client.manifest.mjs
build-cf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/pnpm-install
- name: Run Build
run: NITRO_PRESET=cloudflare_pages pnpm nuxi build