Skip to content

Commit

Permalink
fix: update ci workflow to upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
sirishgf committed Jan 2, 2024
1 parent d876c8a commit 7f71419
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/node-ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ jobs:
- name: Test with ava
id: unit-tests-step
run: find ./* -maxdepth 2 -name ava.config.js -print0 | xargs -n 1 -0 npx nyc ava

- name: Upload test artifact
id: upload-test-artifact
uses: actions/upload-artifact@v4
name: my-artifact
path: coverage/lcov-report
retention-days: 14
2 changes: 1 addition & 1 deletion src/__tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require("ava");
const index = require("../index");
const index = require("../../index.js");

test("Sample Testcase", (t) => {
t.pass();
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/sample.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const test = require("ava");

test("Sample Testcase", (t) => {
t.fail();
t.pass();
});

0 comments on commit 7f71419

Please sign in to comment.