Skip to content

Commit

Permalink
Create test-coverage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrnio authored Nov 23, 2023
1 parent 6ca2d12 commit f4fb1a1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: 'Test Coverage'
on:
workflow_dispatch:

jobs:
test_coverage:
runs-on: ubuntu-latest
environment: CI_TEST
env:
GPT3_5_APIKEY: ${{ secrets.GPT3_5_APIKEY }}
GPT3_5_URL: ${{ secrets.GPT3_5_URL }}
GPT4_APIKEY: ${{ secrets.GPT4_APIKEY }}
GPT4_URL: ${{ secrets.GPT4_URL }}
ROARR_LOG: true
NODE_ENV: development

permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write

strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: 'Install Deps'
run: yarn install
- name: 'Test'
run: yarn coverage
- name: 'Report Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2

0 comments on commit f4fb1a1

Please sign in to comment.