From 3252717a1c23628aee828a375b38a5e9cb3c45bd Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Wed, 22 May 2024 14:45:33 -0400 Subject: [PATCH] ci: up --- .../actions/install-dependencies/action.yml | 3 --- .github/workflows/label-issue.yml | 26 +++++++------------ .github/workflows/lock-issue.yml | 23 ++++++---------- .github/workflows/verify.yml | 11 +++++--- 4 files changed, 25 insertions(+), 38 deletions(-) diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml index 97794fa960..8fbf8ae042 100644 --- a/.github/actions/install-dependencies/action.yml +++ b/.github/actions/install-dependencies/action.yml @@ -13,9 +13,6 @@ runs: cache: pnpm node-version: 20 - - name: Set up foundry - uses: foundry-rs/foundry-toolchain@v1 - - name: Install dependencies shell: bash run: pnpm install diff --git a/.github/workflows/label-issue.yml b/.github/workflows/label-issue.yml index 03b7036c78..bc38f82cac 100644 --- a/.github/workflows/label-issue.yml +++ b/.github/workflows/label-issue.yml @@ -1,25 +1,19 @@ -name: Label Issue +name: Issue Labeled on: issues: types: [labeled] jobs: - reply-labeled: - runs-on: ubuntu-latest - steps: - - name: Label needs reproduction - if: github.event.label.name == 'needs reproduction' - uses: peter-evans/close-issue@v3 - with: - close-reason: not_planned - comment: | - Hello @${{ github.event.issue.user.login }}. + issue-labeled: + if: ${{ github.repository_owner == 'wevm' }} + uses: wevm/actions/.github/workflows/issue-labeled.yml + with: + needs-reproduction-body: | + Hello @${{ github.event.issue.user.login }}. - Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using [StackBlitz](https://new.wagmi.sh), [TypeScript Playground](https://www.typescriptlang.org/play) (for type issues), or a separate minimal GitHub repository. + Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using [StackBlitz](https://new.wagmi.sh), [TypeScript Playground](https://www.typescriptlang.org/play) (for type issues), or a separate minimal GitHub repository. - Minimal reproductions are required as they save us a lot of time reproducing your config & environment, and trying to reproduce your issue. See [Why reproductions are required](https://antfu.me/posts/why-reproductions-are-required). + [Minimal reproductions are required](https://antfu.me/posts/why-reproductions-are-required) as they save us a lot of time reproducing your config/environment and issue, and allow us to help you faster. - Please reopen this issue when a reproduction is added. - issue-number: ${{ github.event.issue.number }} - token: ${{ secrets.GITHUB_TOKEN }} + Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue. diff --git a/.github/workflows/lock-issue.yml b/.github/workflows/lock-issue.yml index c8031c2f00..3ffd43ac9d 100644 --- a/.github/workflows/lock-issue.yml +++ b/.github/workflows/lock-issue.yml @@ -4,20 +4,13 @@ on: schedule: - cron: '0 0 * * *' -permissions: - issues: write - jobs: - action: - runs-on: ubuntu-latest - steps: - - uses: dessant/lock-threads@v5 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - issue-comment: | - This issue has been locked since it has been closed for more than 14 days. + lock-issue: + if: ${{ github.repository_owner == 'wevm' }} + uses: wevm/actions/.github/workflows/lock-issue.yml + with: + issue-comment: | + This issue has been locked since it has been closed for more than 14 days. - If you found a concrete bug or regression related to it, please open a new [bug report](https://github.com/wevm/wagmi/issues/new/choose) with a reproduction against the latest wagmi version. If you have any other comments you can create a new [discussion](https://github.com/wevm/wagmi/discussions). - issue-lock-reason: '' - issue-inactive-days: '14' - process-only: 'issues' + If you found a concrete bug or regression related to it, please open a new [bug report](https://github.com/wevm/wagmi/issues/new?template=bug_report.yml) with a reproduction against the latest Wagmi version. If you have any questions or comments you can create a new [discussion thread](https://github.com/wevm/wagmi/discussions). + diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index f06951978d..9b6223e04b 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies - uses: ./.github/actions/install-dependencies + uses: wevm/actions/.github/actions/pnpm - name: Lint repo run: pnpm lint:repo @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies - uses: ./.github/actions/install-dependencies + uses: wevm/actions/.github/actions/pnpm - name: Build run: pnpm build @@ -70,7 +70,7 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies - uses: ./.github/actions/install-dependencies + uses: wevm/actions/.github/actions/pnpm - run: pnpm add -D -w typescript@${{ matrix.typescript-version }} viem@${{ matrix.viem-version }} @@ -100,7 +100,10 @@ jobs: uses: actions/checkout@v4 - name: Install dependencies - uses: ./.github/actions/install-dependencies + uses: wevm/actions/.github/actions/pnpm + + - name: Set up foundry + uses: foundry-rs/foundry-toolchain@v1 - name: Run tests uses: nick-fields/retry@v3