Skip to content

Commit d60f706

Browse files
committed
chore: update readme
1 parent 3bdc046 commit d60f706

File tree

1 file changed

+34
-17
lines changed

1 file changed

+34
-17
lines changed

README.md

+34-17
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,19 @@ steps:
4141
id: checkout
4242
uses: actions/checkout@v4
4343

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
4653
uses: Hyphen/env-action@v1
4754
with:
48-
hxKeyFile: ${{ secrets.HX_KEY_FILE }}
55+
hxKeyFile: ${{ secrets.HYPHEN_KEY_FILE }}
56+
environment: development
4957
outputs: |-
5058
files
5159
variables
@@ -113,23 +121,32 @@ integration-tests:
113121
os: [ubuntu-latest, windows-latest, macos-latest]
114122
runs-on: ${{ matrix.os }}
115123
steps:
124+
- name: Use Node.js 20
125+
uses: actions/setup-node@v4
126+
with:
127+
node-version: 20
116128
- name: Checkout
117129
id: checkout
118130
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
133150
```
134151
135152
For workflow runs, check out the

0 commit comments

Comments
 (0)