-
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.
- Loading branch information
1 parent
a98b88e
commit 3e2c82a
Showing
2 changed files
with
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Test Re-usable actions | ||
|
||
on: | ||
# Should trigger on a push to any branch | ||
push: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
test-os: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Test Re-usable Action | ||
uses: vechain/networkhub@add-reusable-action |
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,41 @@ | ||
name: 'Hello World' | ||
description: 'Greet someone' | ||
inputs: | ||
who-to-greet: # id of input | ||
description: 'Who to greet' | ||
required: true | ||
default: 'World' | ||
outputs: | ||
random-number: | ||
description: "Random number" | ||
value: ${{ steps.random-number-generator.outputs.random-number }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set Greeting | ||
run: echo "Hello $INPUT_WHO_TO_GREET." | ||
shell: bash | ||
env: | ||
INPUT_WHO_TO_GREET: ${{ inputs.who-to-greet }} | ||
|
||
- name: Random Number Generator | ||
id: random-number-generator | ||
run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Set GitHub Path | ||
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH | ||
shell: bash | ||
env: | ||
GITHUB_ACTION_PATH: ${{ github.action_path }} | ||
|
||
- name: Run goodbye.sh | ||
run: goodbye.sh | ||
shell: bash | ||
|
||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: true | ||
file: ./coverage.out |