-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (38 loc) · 1.04 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
name: "Integration Test"
on:
pull_request:
push:
branches:
- main
- "releases/*"
jobs:
# test action works running from the graph
test:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
with:
command: echo "printing from stdout"
template: "Testing command\n%command%"
update-text: "Testing command"
- uses: ./
with:
command: node -e "process.stdout.write('testing Out');process.stderr.write('testing Error')"
template: "Testing stdout/stderr\n```\n%stdout%\n```\n```\n%stderr%\n```"
update-text: "Testing stdout/stderr"
test-working-dir:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: mkdir "sub_dir"
- uses: ./
with:
command: pwd
template: "Testing working_dir\n```\n%stdout%\n```"
update-text: "Testing working_dir"
working-dir: sub_dir