generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 13
29 lines (28 loc) · 842 Bytes
/
post.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
name: Test POST
on: push
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Get the sources
uses: actions/checkout@v3
- name: Execute a dummy request
id: request
uses: ./
with:
url: 'https://jsonplaceholder.typicode.com/todos'
method: post
data: '{ "title": "dummy-todo", "userId": 1, "completed": false }'
- name: Print the response status
run: echo ${{ steps.request.outputs.status }}
shell: bash
- name: Print the response headers
run: echo ${{ steps.request.outputs.headers }}
shell: bash
- name: Print the response payload
run: echo ${{ steps.request.outputs.response }}
shell: bash