mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +00:00
Only validate GraphQL previews
This commit is contained in:
8
.github/workflows/integration.yml
vendored
8
.github/workflows/integration.yml
vendored
@@ -66,7 +66,7 @@ jobs:
|
||||
echo $'\u2705 Test passed' | tee -a $GITHUB_STEP_SUMMARY
|
||||
|
||||
test-previews:
|
||||
name: 'Integration test: previews option'
|
||||
name: 'Integration test: GraphQL previews option'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -77,7 +77,7 @@ jobs:
|
||||
with:
|
||||
script: |
|
||||
const endpoint = github.request.endpoint
|
||||
return endpoint({}).headers.accept
|
||||
return endpoint({url: \"/graphql\"}).headers.accept
|
||||
result-encoding: string
|
||||
- id: previews-set-single
|
||||
name: Previews set to a single value
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
previews: foo
|
||||
script: |
|
||||
const endpoint = github.request.endpoint
|
||||
return endpoint({}).headers.accept
|
||||
return endpoint({url: \"/graphql\"}).headers.accept
|
||||
result-encoding: string
|
||||
- id: previews-set-multiple
|
||||
name: Previews set to comma-separated list
|
||||
@@ -95,7 +95,7 @@ jobs:
|
||||
previews: foo,bar,baz
|
||||
script: |
|
||||
const endpoint = github.request.endpoint
|
||||
return endpoint({}).headers.accept
|
||||
return endpoint({url: \"/graphql\"}).headers.accept
|
||||
result-encoding: string
|
||||
- run: |
|
||||
echo "- Validating previews default"
|
||||
|
||||
Reference in New Issue
Block a user