add test workflow for ci

This commit is contained in:
geoffsee
2025-05-29 21:39:00 -04:00
committed by Geoff Seemueller
parent f07c19dae8
commit 32339f3f18
3 changed files with 37 additions and 2 deletions

32
.github/workflows/test.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Tests
permissions:
pull-requests: write
statuses: write
checks: write
contents: read
actions: read
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, reopened, synchronize]
merge_group: # triggers workflow for merge queue
types: [checks_requested]
jobs:
tests:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Test
run: bun run test

View File

@@ -1,3 +1,4 @@
# will automatically update the VPN blocklist and redeploy (recommended)
name: "Update VPN Blocklist"
on:
@@ -6,8 +7,8 @@ on:
# branches:
# - main
workflow_dispatch: # Manual trigger
schedule:
- cron: "57 8 * * *"
# schedule:
# - cron: "57 8 * * *"
jobs:
build-and-deploy: