Skip to content

Commit

Permalink
Merge pull request #26 from CamiloGarciaLaRotta/tmp/secret-workflow
Browse files Browse the repository at this point in the history
chore: e2e test for custom headers
  • Loading branch information
CamiloGarciaLaRotta committed Apr 7, 2020
2 parents 129d679 + 1265084 commit 380c9da
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/graphql_2.yml
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

0 comments on commit 380c9da

Please sign in to comment.