Skip to content

Commit

Permalink
Merge pull request #78 from outerbase/bwilmoth/test-yaml
Browse files Browse the repository at this point in the history
fix: Modify test yaml for manual triggering
  • Loading branch information
Brayden authored Jan 26, 2025
2 parents 37cc5f2 + 05066c1 commit b263f3f
Show file tree
Hide file tree
Showing 4 changed files with 647 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Test

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to run tests on'
required: true
default: 'main'
type: string
push:
branches:
- main
Expand All @@ -10,6 +17,10 @@ jobs:
test:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

steps:
- uses: actions/checkout@v3

Expand All @@ -28,4 +39,7 @@ jobs:
run: pnpm install

- name: Run tests
run: pnpm test
run: pnpm vitest --coverage.enabled true --coverage.reporter json-summary --coverage.reporter json

- name: Report Coverage
uses: davelosert/vitest-coverage-report-action@v2
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"devDependencies": {
"@cloudflare/workers-types": "^4.20241216.0",
"@types/pg": "^8.11.10",
"@vitest/coverage-istanbul": "2.1.8",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"prettier": "3.4.2",
Expand Down
Loading

0 comments on commit b263f3f

Please sign in to comment.