@@ -3,6 +3,14 @@ name: Release Test
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
+ analog_build_tag :
7
+ description : ' Analog Build Tag'
8
+ required : true
9
+ default : ' latest'
10
+ type : choice
11
+ options :
12
+ - latest
13
+ - beta
6
14
angular_build_tag :
7
15
description : ' Angular Build Tag'
8
16
required : true
27
35
- uses : actions/setup-node@v3
28
36
- run : corepack enable
29
37
- run : npm --version
30
- - name : Set Release Tag
31
- run : |
32
- TAG="$(${{ github.ref_name == 'main' }} && echo 'latest' || echo '${{ github.ref_name }}')"
33
38
- name : Create Analog Application
34
- run : npm create analog@$TAG analog-app -- --skipTailwind --analogSFC=false --template latest
39
+ run : npm create analog@${{ inputs.analog_build_tag }} analog-app -- --skipTailwind --analogSFC=false --template latest
35
40
- name : Build, Test, and Validate
36
41
run : |
37
42
cd analog-app
46
51
- uses : actions/setup-node@v3
47
52
- run : corepack enable
48
53
- run : npm --version
49
- - name : Set Release Tag
50
- run : |
51
- TAG="$(${{ github.ref_name == 'main' }} && echo 'latest' || echo '${{ github.ref_name }}')"
52
54
- name : Create Nx Workspace
53
55
run : |
54
- npx create-nx-workspace@${{ inputs.nx_build_tag }} analog-nx-workspace --preset @analogjs/platform@$TAG --analogAppName my-analog-app --addTailwind=false --addTRPC=false --ci skip
56
+ 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
55
57
- name : Build, Test, and Validate
56
58
run : |
57
59
cd analog-nx-workspace
@@ -66,16 +68,13 @@ jobs:
66
68
- uses : actions/setup-node@v3
67
69
- run : corepack enable
68
70
- run : npm --version
69
- - name : Set Release Tag
70
- run : |
71
- TAG="$(${{ github.ref_name == 'main' }} && echo 'latest' || echo '${{ github.ref_name }}')"
72
71
- name : Create Angular App
73
72
run : |
74
73
npx @angular/cli@${{ inputs.angular_build_tag }} new my-angular-app --style css --no-ssr
75
74
- name : Migrate, Build, Test, and Validate
76
75
run : |
77
76
cd my-angular-app
78
- npm install @analogjs/platform@$TAG --save-dev
77
+ npm install @analogjs/platform@${{ inputs.analog_build_tag }} --save-dev
79
78
npx ng g @analogjs/platform:init --project my-angular-app --vitest=true
80
79
npm run build
81
80
npm run test
0 commit comments