Update dependency eslint to v9.19.0 (#498) #1163
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: | |
pull_request: | |
paths: | |
- src/** | |
- tests/** | |
- '*.json' | |
- '*.yaml' | |
- '*.config.*' | |
- graphql-codegen.* | |
- .github/workflows/ts.yaml | |
push: | |
branches: | |
- main | |
paths: | |
- src/** | |
- tests/** | |
- '*.json' | |
- '*.yaml' | |
- '*.config.*' | |
- graphql-codegen.* | |
- .github/workflows/ts.yaml | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
with: | |
node-version: 20 | |
- run: corepack enable pnpm | |
- run: pnpm i | |
- run: pnpm test | |
- run: pnpm build | |
# Create a branch without workflows, | |
# because GITHUB_TOKEN does not have workflows permission. | |
# https://github.com/int128/stale-branch-action/tree/ce4743423eadc59f029a71a5cb9e2a68f965386f | |
- run: git fetch origin ce4743423eadc59f029a71a5cb9e2a68f965386f | |
- run: git push origin -f 'ce4743423eadc59f029a71a5cb9e2a68f965386f:refs/heads/e2e-test-${{ github.run_id }}/fixture' | |
- name: 'Run int128/stale-branch-action' | |
id: stale-branch-action | |
uses: ./ | |
with: | |
expiration-days: 1 | |
ref-prefix: refs/heads/e2e-test-${{ github.run_id }}/ | |
- name: Test outputs.stale-refs | |
run: echo '${{ steps.stale-branch-action.outputs.stale-refs }}' | grep 'refs/heads/e2e-test-${{ github.run_id }}/fixture' | |
- if: always() | |
continue-on-error: true | |
run: git push origin --delete 'refs/heads/e2e-test-${{ github.run_id }}/fixture' | |
generate: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
with: | |
node-version: 20 | |
- run: corepack enable pnpm | |
- run: pnpm i | |
- run: pnpm lint --fix | |
- run: pnpm format | |
- run: pnpm graphql-codegen | |
- uses: int128/update-generated-files-action@65b9a7ae3ededc5679d78343f58fbebcf1ebd785 # v2.57.0 |