Skip to content

Commit

Permalink
ci: reusable workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed May 22, 2024
1 parent 4070e05 commit f3d77e7
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ runs:
- name: Set up Foundry
uses: foundry-rs/foundry-toolchain@v1

# TODO(3074): Remove this when 3074 supported natively in Anvil.
# TODO(3074): Remove this when 3074 supported natively in Anvil.
- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Install dependencies
shell: bash
run: bun install
run: bun install
19 changes: 19 additions & 0 deletions .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Issue Labeled

on:
issues:
types: [labeled]

jobs:
issue-labeled:
if: ${{ github.repository_owner == 'wevm' }}
uses: wevm/actions/.github/workflows/issue-labeled.yml@main
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.viem.sh), [TypeScript Playground](https://www.typescriptlang.org/play) (for type issues), or a separate minimal GitHub repository.
[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.
Once a minimal reproduction is added, a team member will confirm it works, then re-open the issue.
25 changes: 0 additions & 25 deletions .github/workflows/issue-labelled.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/lock-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lock Issue

on:
schedule:
- cron: '0 0 * * *'

jobs:
lock-issue:
if: ${{ github.repository_owner == 'wevm' }}
uses: wevm/actions/.github/workflows/lock-issue.yml@main
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/viem/issues/new?template=bug_report.yml) with a reproduction against the latest Viem version. If you have any questions or comments you can create a new [discussion thread](https://github.com/wevm/viem/discussions).

0 comments on commit f3d77e7

Please sign in to comment.