Skip to content

Commit

Permalink
[FEATURE] add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
depresto committed May 11, 2023
1 parent 55a0eab commit 03bf4a1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,21 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: Test with Codecov
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Run tests and collect coverage
run: npm run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
3 changes: 2 additions & 1 deletion jest.config.js
@@ -1,6 +1,7 @@
module.exports = {
collectCoverage: true,
coverageDirectory: "coverage",
preset: "ts-jest",
testEnvironment: "node",
transformIgnorePatterns: ["<rootDir>/node_modules/"],
coverageReporters: ["text", "cobertura"],
};

0 comments on commit 03bf4a1

Please sign in to comment.