Skip to content

Commit

Permalink
ci: mv jest to own workflow & add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
steezplusplus committed Sep 14, 2023
1 parent d80b484 commit d664c77
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ jobs:
run: npm run prettier
- name: Run ESLint
run: npm run lint
- name: Run Jest
run: npm run test
- name: Run build
run: npm run build
30 changes: 30 additions & 0 deletions .github/workflows/jest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Jest

on:
pull_request:
branches:
- main

env:
GIT_PAT: ${{ secrets.GIT_PAT }}
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

jobs:
jest:
name: Run Jest
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Setup node with npm
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Download dependencies
run: npm ci
- name: Run Jest
run: npm run test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

0 comments on commit d664c77

Please sign in to comment.