generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from CamiloGarciaLaRotta/feat/headers
Feat/headers
- Loading branch information
Showing
9 changed files
with
149 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test GitHub GraphQL API | ||
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@v2 | ||
- name: Execute a dummy query | ||
id: query | ||
uses: ./ | ||
with: | ||
headers: '{"Authorization": "bearer ${{ secrets.TOKEN }}" }' | ||
graphql: | | ||
query { | ||
repository(name: "watermelon-http-client", owner:"camilogarcialarotta"){ | ||
issues(first:1) { | ||
nodes{ | ||
title | ||
state | ||
} | ||
} | ||
} | ||
} | ||
- name: Print the response status | ||
run: echo ${{ steps.query.outputs.status }} | ||
shell: bash | ||
- name: Print the response headers | ||
run: echo ${{ steps.query.outputs.headers }} | ||
shell: bash | ||
- name: Print the response payload | ||
run: echo ${{ steps.query.outputs.response }} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.