Skip to content

Commit

Permalink
Update: Workflow versions, added codecov yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dhershman1 committed Oct 14, 2024
1 parent 2febe17 commit 79f145b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/kyanite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Check node_module Cache
id: node-module-cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
node_modules
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Check Coverage
run: npm run coverage
- name: Upload Coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: ./coverage.lcov
name: kyanite-tests
Expand All @@ -50,14 +50,14 @@ jobs:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Check node_module Cache
id: node-module-cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
node_modules
Expand Down
18 changes: 18 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
codecov:
token: 983a4b7b-9b87-4a9b-8a00-9483e1868426
notify:
require_ci_to_pass: yes
after_n_builds: 1

coverage:
status:
project:
default:
target: 80%
patch:
default:
target: 80%

comment:
layout: "reach, diff, flags, files"
behavior: default

0 comments on commit 79f145b

Please sign in to comment.