-
-
Notifications
You must be signed in to change notification settings - Fork 256
81 lines (77 loc) · 2.38 KB
/
test-release.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Release Test
on:
workflow_dispatch:
inputs:
analog_build_tag:
description: 'Analog Build Tag'
required: true
default: 'latest'
type: choice
options:
- latest
- beta
angular_build_tag:
description: 'Angular Build Tag'
required: true
default: 'latest'
type: choice
options:
- latest
- next
nx_build_tag:
description: 'Nx Build Tag'
required: true
default: 'latest'
type: choice
options:
- latest
- canary
jobs:
create-analog:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- run: corepack enable
- run: npm --version
- name: Create Analog Application
run: npm create analog@${{ inputs.analog_build_tag }} analog-app -- --skipTailwind --analogSFC=false --template latest
- name: Build, Test, and Validate
run: |
cd analog-app
npm install
npm run build
npm run test
cat ./dist/analog/public/index.html
create-nx-workspace:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- run: corepack enable
- run: npm --version
- name: Create Nx Workspace
run: |
npx create-nx-workspace@${{ inputs.nx_build_tag }} analog-nx-workspace --preset @analogjs/platform@${{ inputs.analog_build_tag }} --analogAppName my-analog-app --addTailwind=false --addTRPC=false --ci skip
- name: Build, Test, and Validate
run: |
cd analog-nx-workspace
npm install
npx nx build my-analog-app
npx nx test my-analog-app
cat ./dist/my-analog-app/analog/public/index.html
migrate-angular-app:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- run: corepack enable
- run: npm --version
- name: Create Angular App
run: |
npx @angular/cli@${{ inputs.angular_build_tag }} new my-angular-app --style css --no-ssr
- name: Migrate, Build, Test, and Validate
run: |
cd my-angular-app
npm install @analogjs/platform@${{ inputs.analog_build_tag }} --save-dev
npx ng g @analogjs/platform:init --project my-angular-app --vitest=true
npm run build
npm run test
cat ./dist/analog/public/index.html