Skip to content

Update dependency @types/node to v20.17.16 (#497) #1158

Update dependency @types/node to v20.17.16 (#497)

Update dependency @types/node to v20.17.16 (#497) #1158

Workflow file for this run

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@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.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@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.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