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" name: "Update VPN Blocklist"
on: on:
@@ -6,8 +7,8 @@ on:
# branches: # branches:
# - main # - main
workflow_dispatch: # Manual trigger workflow_dispatch: # Manual trigger
schedule: # schedule:
- cron: "57 8 * * *" # - cron: "57 8 * * *"
jobs: jobs:
build-and-deploy: build-and-deploy:

View File

@@ -1,4 +1,6 @@
# open-gsio # open-gsio
![Tests](https://github.com/geoffsee/open-gsio/actions/workflows/tests.yml/badge.svg)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0.html)
![image](https://github.com/user-attachments/assets/a323d373-6241-4b76-b564-f0d080ff93f7) ![image](https://github.com/user-attachments/assets/a323d373-6241-4b76-b564-f0d080ff93f7)
### Stack: ### Stack: