Skip to content

Commit 0e86b10

Browse files
feat(ci): update PR test action
1 parent d581409 commit 0e86b10

File tree

1 file changed

+33
-18
lines changed

1 file changed

+33
-18
lines changed

.github/workflows/pr-test.yml

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,46 @@ name: 'PR: Test'
22

33
on: pull_request
44

5-
env:
6-
HAB_LICENSE: accept-no-persist
7-
85
jobs:
9-
pr-test:
6+
test-cli:
107

118
runs-on: ubuntu-latest
129
steps:
1310

14-
- name: 'Initialize Chef Habitat environment'
15-
uses: JarvusInnovations/habitat-action@action/v1
16-
with:
17-
deps: |
18-
core/hab-plan-build
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: '20.x'
14+
15+
- uses: actions/checkout@v4
16+
17+
- run: npm install
18+
19+
- name: 'Test projection: docs-site'
20+
run: node bin/cli.js project --no-cache-from --cache-to=origin docs-site
21+
22+
- name: 'Test projection: github-action-projector'
23+
run: node bin/cli.js project --no-cache-from --cache-to=origin github-action-projector
24+
25+
test-action:
26+
27+
runs-on: ubuntu-latest
28+
steps:
1929

20-
- uses: actions/checkout@v2
30+
- uses: actions/setup-node@v4
31+
with:
32+
node-version: '20.x'
2133

22-
- name: 'Generate origin key: jarvus'
23-
run: hab origin key generate jarvus
34+
- uses: actions/checkout@v4
2435

25-
- name: Build jarvus/hologit
26-
run: hab pkg exec core/hab-plan-build hab-plan-build .
36+
- run: npm install
37+
working-directory: github-actions/projector
2738

28-
- name: 'Test projection: docs-site'
29-
run: hab pkg exec jarvus/hologit/0.0.1 git-holo project --no-cache-from --cache-to=origin docs-site
39+
- name: 'Test projection action: docs-site'
40+
uses: ./github-actions/projector/
41+
with:
42+
holobranch: docs-site
3043

31-
- name: 'Test projection: github-action-projector'
32-
run: hab pkg exec jarvus/hologit/0.0.1 git-holo project --no-cache-from --cache-to=origin github-action-projector
44+
- name: 'Test projection action: github-action-projector'
45+
uses: ./github-actions/projector/
46+
with:
47+
holobranch: github-action-projector

0 commit comments

Comments
 (0)