forked from Codehagen/Badget
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: ["main"] | ||
push: | ||
branches: ["main"] | ||
merge_group: | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
# You can leverage Vercel Remote Caching with Turbo to speed up your builds | ||
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds | ||
# env: | ||
# FORCE_COLOR: 3 | ||
# TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
# TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./tooling/github/setup | ||
|
||
- name: Copy env | ||
shell: bash | ||
run: cp .env.example .env.local | ||
|
||
- name: Lint | ||
run: pnpm lint && pnpm lint:ws | ||
|
||
format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./tooling/github/setup | ||
|
||
- name: Format | ||
run: pnpm format | ||
|
||
typecheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./tooling/github/setup | ||
|
||
- name: Typecheck | ||
run: pnpm typecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# .github/workflows/take.yml | ||
name: Assign issue to contributor | ||
on: | ||
issue_comment: | ||
|
||
jobs: | ||
assign: | ||
name: Take an issue | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: take the issue | ||
uses: bdougie/take-action@main | ||
with: | ||
message: Thanks for taking this issue! Let us know if you have any questions! | ||
blockingLabels: in progress | ||
blockingLabelsMessage: This issue is already taken by someone else and is in progress. You can find another one by surfing the issues page. | ||
trigger: .take | ||
token: ${{ secrets.GITHUB_TOKEN }} |