2020-04-21 11:44:56 +00:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
request:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{ github.ref }}
|
|
|
|
|
2020-04-21 11:55:30 +00:00
|
|
|
- name: Request Postment Echo GET
|
2020-04-21 11:44:56 +00:00
|
|
|
uses: ./
|
|
|
|
with:
|
2020-04-21 11:55:30 +00:00
|
|
|
url: 'https://postman-echo.com/get'
|
2020-04-21 11:44:56 +00:00
|
|
|
method: 'GET'
|
2020-04-21 11:58:56 +00:00
|
|
|
|
|
|
|
- name: Request Postment Echo POST
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/post'
|
|
|
|
method: 'POST'
|
|
|
|
data: '{ "key": "value" }'
|
2020-04-21 12:07:56 +00:00
|
|
|
|
2020-12-16 20:37:11 +00:00
|
|
|
- name: Request Postment Echo POST with Unescaped Newline
|
2020-10-07 16:29:38 +00:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/post'
|
|
|
|
method: 'POST'
|
|
|
|
escapeData: 'true'
|
|
|
|
data: >-
|
|
|
|
{
|
|
|
|
"key":"multi line\ntest
|
|
|
|
text"
|
|
|
|
}
|
|
|
|
|
2020-04-21 12:07:56 +00:00
|
|
|
- name: Request Postment Echo BasicAuth
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/basic-auth'
|
2020-04-21 12:09:38 +00:00
|
|
|
method: 'GET'
|
2020-04-21 12:07:56 +00:00
|
|
|
username: 'postman'
|
|
|
|
password: 'password'
|
2021-01-24 12:14:13 +00:00
|
|
|
|
|
|
|
- name: Create Test File
|
|
|
|
id: image
|
|
|
|
run: |
|
|
|
|
echo "test" > testfile.txt
|
|
|
|
|
|
|
|
- name: Request Postment Echo POST Multipart
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/post'
|
|
|
|
method: 'POST'
|
|
|
|
data: '{ "key": "value" }'
|
|
|
|
files: '{ "file": "${{ github.workspace }}/testfile.txt" }'
|