Update dependency @octokit/graphql-schema to v14.31.1 (#731) #1777
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
name: ts | |
on: | |
push: | |
branches: [main] | |
paths: | |
- src/** | |
- tests/** | |
- '*.json' | |
- action.yaml | |
- .github/workflows/ts.yaml | |
pull_request: | |
branches: [main] | |
paths: | |
- src/** | |
- tests/** | |
- '*.json' | |
- action.yaml | |
- .github/workflows/ts.yaml | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: yarn | |
- run: yarn | |
- run: yarn lint | |
- run: yarn format-check | |
- run: yarn test | |
- run: yarn build | |
- run: yarn package | |
- if: github.event_name == 'pull_request' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `👋 e2e-test` | |
}) | |
- name: test the default behavior | |
uses: ./ | |
- if: github.event_name == 'pull_request' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `👋 e2e-test\n<!-- tail -->` | |
}) | |
- if: github.event_name == 'pull_request' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `<!-- head -->\n👋 e2e-test` | |
}) | |
- name: test with options | |
uses: ./ | |
with: | |
ends-with: | | |
<!-- tail --> | |
starts-with: | | |
<!-- head --> | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: yarn | |
- run: yarn | |
- run: yarn format | |
- run: yarn graphql-codegen | |
- uses: int128/update-generated-files-action@v2 |