2020-04-21 07:44:56 -04:00
|
|
|
name: Test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
request:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{ github.ref }}
|
|
|
|
|
2021-07-22 08:52:06 -04:00
|
|
|
- name: Request Postman Echo GET
|
2020-04-21 07:44:56 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
2020-04-21 07:55:30 -04:00
|
|
|
url: 'https://postman-echo.com/get'
|
2020-04-21 07:44:56 -04:00
|
|
|
method: 'GET'
|
2020-04-21 07:58:56 -04:00
|
|
|
|
2021-07-22 08:52:06 -04:00
|
|
|
- name: Request Postman Echo POST
|
2020-04-21 07:58:56 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/post'
|
|
|
|
method: 'POST'
|
|
|
|
data: '{ "key": "value" }'
|
2020-04-21 08:07:56 -04:00
|
|
|
|
2021-07-22 08:52:06 -04:00
|
|
|
- name: Request Postman Echo POST with Unescaped Newline
|
2020-10-07 12:29:38 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/post'
|
|
|
|
method: 'POST'
|
|
|
|
escapeData: 'true'
|
|
|
|
data: >-
|
|
|
|
{
|
|
|
|
"key":"multi line\ntest
|
|
|
|
text"
|
|
|
|
}
|
|
|
|
|
2021-07-22 08:52:06 -04:00
|
|
|
- name: Request Postman Echo BasicAuth
|
2020-04-21 08:07:56 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/basic-auth'
|
2020-04-21 08:09:38 -04:00
|
|
|
method: 'GET'
|
2020-04-21 08:07:56 -04:00
|
|
|
username: 'postman'
|
|
|
|
password: 'password'
|
2021-01-24 07:14:13 -05:00
|
|
|
|
2021-07-22 08:52:06 -04:00
|
|
|
- name: Request Postman Echo with 404 Response and ignore failure code
|
2021-03-19 12:28:53 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/status/404'
|
|
|
|
method: 'GET'
|
|
|
|
ignoreStatusCodes: '404'
|
|
|
|
|
2021-01-24 07:14:13 -05:00
|
|
|
- name: Create Test File
|
|
|
|
run: |
|
|
|
|
echo "test" > testfile.txt
|
|
|
|
|
2021-07-22 08:52:06 -04:00
|
|
|
- name: Request Postman Echo POST Multipart
|
2021-01-24 07:14:13 -05:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/post'
|
|
|
|
method: 'POST'
|
|
|
|
data: '{ "key": "value" }'
|
|
|
|
files: '{ "file": "${{ github.workspace }}/testfile.txt" }'
|
2022-02-09 22:14:07 -05:00
|
|
|
|
2022-10-05 11:29:30 -04:00
|
|
|
- name: Request Postman Echo POST Multipart without data
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/post'
|
|
|
|
method: 'POST'
|
|
|
|
files: '{ "file": "${{ github.workspace }}/testfile.txt" }'
|
|
|
|
|
2022-02-09 22:14:07 -05:00
|
|
|
- name: Request Postman Echo POST single file
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
url: 'https://postman-echo.com/post'
|
|
|
|
method: 'POST'
|
|
|
|
file: "${{ github.workspace }}/testfile.txt"
|