@@ -41,11 +41,19 @@ steps:
41
41
id : checkout
42
42
uses : actions/checkout@v4
43
43
44
- - name : Setup Hyphen CLI
45
- id : setup-hx
44
+ - name : setup hx CLI
45
+ id : setup
46
+ uses : Hyphen/setup-hx-action@v1
47
+ with :
48
+ apiKey : ${{ secrets.HYPHEN_API_KEY }}
49
+ hyphen-dev : true
50
+
51
+ - name : Pull ENV secrets
52
+ id : pull-env
46
53
uses : Hyphen/env-action@v1
47
54
with :
48
- hxKeyFile : ${{ secrets.HX_KEY_FILE }}
55
+ hxKeyFile : ${{ secrets.HYPHEN_KEY_FILE }}
56
+ environment : development
49
57
outputs : |-
50
58
files
51
59
variables
@@ -113,23 +121,32 @@ integration-tests:
113
121
os: [ubuntu-latest, windows-latest, macos-latest]
114
122
runs-on: ${{ matrix.os } }
115
123
steps:
124
+ - name: Use Node.js 20
125
+ uses: actions/setup-node@v4
126
+ with:
127
+ node-version: 20
116
128
- name: Checkout
117
129
id: checkout
118
130
uses: actions/checkout@v4
119
-
120
- - name: Setup Hyphen CLI
121
- id: setup-hx
122
- uses: Hyphen/env-action@v1
123
- with:
124
- hxKeyFile: ${{ secrets.HX_KEY_FILE } }
125
- outputs: | -
126
- files
127
- variables
128
-
129
- - name: test output
130
- id: test-output
131
- run: | # This output will be masked as we add them to GitHub's secret list
132
- echo " Secret: $SOME_SECRETE "
131
+ - name: setup hx CLI
132
+ id: setup
133
+ uses: Hyphen/setup-hx-action@v1
134
+ with:
135
+ apiKey: ${{ secrets.HYPHEN_API_KEY } }
136
+ hyphen-dev: true
137
+ - name: Test Local Action
138
+ id: test-action
139
+ uses: ./
140
+ with:
141
+ hxKeyFile: ${{ secrets.HYPHEN_KEY_FILE } }
142
+ environment: development
143
+ outputs: | -
144
+ files
145
+ variables
146
+ - name: test outputs
147
+ id: test-outputs
148
+ run: | # this checks for both files and variables being set
149
+ node ./integration-test.js
133
150
` ` `
134
151
135
152
For workflow runs, check out the
0 commit comments