-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.21 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "test"
on: "push"
jobs:
test:
uses: "KyoriPowered/.github/.github/workflows/shared-action-test.yaml@trunk"
secrets: "inherit"
functional-test:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/[email protected]"
- name: "Test API calls"
uses: ./
id: test-run
with:
debug: true
output_file: './test-out.txt'
- name: "Validate output"
env:
LATEST: "${{ steps.test-run.outputs.latest_rc_or_nightly }}"
RELEASE: "${{ steps.test-run.outputs.release }}"
RC: "${{ steps.test-run.outputs.rc }}"
NIGHTLY: "${{ steps.test-run.outputs.nightly }}"
RELEASE_NIGHTLY: "${{ steps.test-run.outputs.release_nightly }}"
run: |
echo "::notice:: Latest: $LATEST"
echo "::notice:: Release: $RELEASE"
echo "::notice:: RC: $RC"
echo "::notice:: Nightly: $NIGHTLY"
echo "::notice:: Release Nightly: $RELEASE_NIGHTLY"
touch test-out.txt # just in case
echo "## Release info file" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat test-out.txt >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY