Skip to content

Instantly share code, notes, and snippets.

@stembrino
Created January 26, 2024 02:24
Show Gist options
  • Save stembrino/76a6834499e8432ad6f669b6790454c6 to your computer and use it in GitHub Desktop.
Save stembrino/76a6834499e8432ad6f669b6790454c6 to your computer and use it in GitHub Desktop.
name: Test and Coverage
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm test -- --coverage
- name: Upload coverage to Codecov (optional)
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment