Skip to content

Commit

Permalink
Fix commit sha in PRs in integration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Sep 20, 2024
1 parent fd868c6 commit dc9e3ed
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
tags:
- '!**'

env:
PKG_URL: |
https://pkg.pr.new/knip@${{ github.event.pull_request.head.sha || github.sha }}
jobs:
prepare:
name: Build and publish Knip
Expand All @@ -34,62 +38,62 @@ jobs:
repo: JoshuaKGoldberg/create-typescript-app
commands: |
pnpm install
pnpm dlx https://pkg.pr.new/knip@${{ github.sha }}
pnpm dlx $PKG_URL
- name: slonik
repo: gajus/slonik
commands: |
pnpm install
pnpm dlx https://pkg.pr.new/knip@${{ github.sha }}
pnpm dlx $PKG_URL
- name: 10ten-ja-reader
repo: birchill/10ten-ja-reader
commands: |
pnpm install
pnpm dlx https://pkg.pr.new/knip@${{ github.sha }}
pnpm dlx $PKG_URL
- name: DefinitelyTyped-tools
repo: microsoft/DefinitelyTyped-tools
commands: |
pnpm install
pnpm dlx https://pkg.pr.new/knip@${{ github.sha }}
pnpm dlx $PKG_URL
- name: query
repo: TanStack/query
commands: |
pnpm install
pnpm add -D -w https://pkg.pr.new/knip@${{ github.sha }}
pnpm add -D -w $PKG_URL
pnpm test:knip --cache
pnpm test:knip --cache
- name: argos
repo: argos-ci/argos
commands: |
npm ci
npm add -D https://pkg.pr.new/knip@${{ github.sha }}
npm add -D $PKG_URL
npm run knip
- name: eslint
repo: eslint/eslint
commands: |
npm install --force
npm install --prefix docs
npm install --force -D https://pkg.pr.new/knip@${{ github.sha }}
npm install --force -D $PKG_URL
npm run lint:unused -- --cache
npm run lint:unused -- --cache
- name: TypeScript
repo: microsoft/TypeScript
commands: |
npm ci
npm install -D https://pkg.pr.new/knip@${{ github.sha }}
npm install -D $PKG_URL
npm run knip
- name: mocha
repo: mochajs/mocha
commands: |
npm ci
npm install -D https://pkg.pr.new/knip@${{ github.sha }}
npm install -D $PKG_URL
npm run lint:knip
- name: InvokeAI
Expand All @@ -98,7 +102,7 @@ jobs:
commands: |
cd invokeai/frontend/web
pnpm install
pnpm add -D https://pkg.pr.new/knip@${{ github.sha }}
pnpm add -D $PKG_URL
bunx --bun knip --tags=-knipignore
bunx --bun knip --tags=-knipignore --production --fix --no-exit-code --allow-remove-files
bunx --bun knip --tags=-knipignore --production
Expand All @@ -111,7 +115,7 @@ jobs:
yarn --cwd scripts/tools/bundle-test
yarn --cwd scripts/tools/eslint-plugin-prettier-internal-rules
yarn --cwd website
yarn add -D knip@https://pkg.pr.new/knip@${{ github.sha }}
yarn add -D knip@$PKG_URL
yarn knip
steps:
Expand Down

0 comments on commit dc9e3ed

Please sign in to comment.