forked from nektos/act
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: define test case of path issues
Test case for nektos#1528
- Loading branch information
1 parent
8b03f6e
commit 5085552
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: output action | ||
description: output action | ||
|
||
inputs: | ||
input: | ||
description: some input | ||
required: false | ||
|
||
outputs: | ||
job-output: | ||
description: some output | ||
value: ${{ steps.gen-out.outputs.step-output }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: run step | ||
id: gen-out | ||
run: | | ||
echo "::set-output name=step-output::" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: path tests | ||
on: push | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: test path (after setup) | ||
run: | | ||
if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/x64/bin" ; then | ||
echo "Node binaries not in path" | ||
exit 1 | ||
fi | ||
- id: action-with-output | ||
uses: ./path-handling/ | ||
|
||
- name: test path (after local action) | ||
run: | | ||
if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/x64/bin" ; then | ||
echo "Node binaries not in path" | ||
exit 1 | ||
fi | ||
- uses: nektos/act-test-actions/composite@main | ||
with: | ||
input: some input | ||
|
||
- name: test path (after remote action) | ||
run: | | ||
if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/x64/bin" ; then | ||
echo "Node binaries not in path: $PATH" | ||
exit 1 | ||
fi |