From 32339f3f18ffdabc753e03c4272295ba09c7f36d Mon Sep 17 00:00:00 2001 From: geoffsee <> Date: Thu, 29 May 2025 21:39:00 -0400 Subject: [PATCH] add test workflow for ci --- .github/workflows/test.yaml | 32 +++++++++++++++++++++ .github/workflows/update-vpn-blocklist.yaml | 5 ++-- README.md | 2 ++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..5bbf34b --- /dev/null +++ b/.github/workflows/test.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/update-vpn-blocklist.yaml b/.github/workflows/update-vpn-blocklist.yaml index b4e8850..e14a34e 100644 --- a/.github/workflows/update-vpn-blocklist.yaml +++ b/.github/workflows/update-vpn-blocklist.yaml @@ -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: diff --git a/README.md b/README.md index 514ba17..9d5d24d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ # 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) ### Stack: