diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..30e05d7 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -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 + + \ No newline at end of file