-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
2a3d9b8
commit e8ab8dd
Showing
1 changed file
with
34 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,34 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" # daily | ||
|
||
env: | ||
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }} | ||
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }} | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
concurrency: test | ||
|
||
name: Tests | ||
steps: | ||
- name: Setup repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install bun | ||
run: curl -fsSL https://bun.sh/install | bash | ||
- name: Install dependencies | ||
run: ~/.bun/bin/bun install | ||
|
||
- name: Run tests | ||
run: ~/.bun/bin/bun test --coverage | ||
|
||
- name: Build | ||
run: ~/.bun/bin/bun run build | ||
|
||
|