Skip to content

Commit

Permalink
ci: up
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed May 22, 2024
1 parent 6b79400 commit 3252717
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 38 deletions.
3 changes: 0 additions & 3 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
26 changes: 10 additions & 16 deletions .github/workflows/label-issue.yml
Original file line number Diff line number Diff line change
@@ -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.
23 changes: 8 additions & 15 deletions .github/workflows/lock-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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).
11 changes: 7 additions & 4 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3252717

Please sign in to comment.