Skip to content

Commit

Permalink
Add test workflow, but no env
Browse files Browse the repository at this point in the history
  • Loading branch information
MeshanKhosla committed Oct 31, 2023
1 parent 2a3d9b8 commit e8ab8dd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yaml
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


0 comments on commit e8ab8dd

Please sign in to comment.