Skip to content

Commit

Permalink
Add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Aug 23, 2024
1 parent c6bb5e5 commit ca8d5f0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 🛠

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn
- name: Run compiler
run: yarn compile
- name: Run tests
run: yarn test:coverage
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/cli.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 🛠️
name: cli
on: push

jobs:
build:
runs-on: ubuntu-latest
Expand Down
13 changes: 0 additions & 13 deletions .github/workflows/unit.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"lint": "eslint .",
"release": "dotenv -- turbo run compile && changeset publish",
"test": "dotenv -- turbo run test",
"test:coverage": "dotenv -- turbo run test:coverage",
"test:build": "dotenv -- turbo run test:build",
"test:create": "dotenv -- turbo run test:create",
"test:cli": "dotenv -- turbo run test:cli",
Expand Down
3 changes: 2 additions & 1 deletion programs/develop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"watch": "tsup-node ./module.ts --format cjs --dts --target=node18 --watch",
"compile": "tsup-node ./module.ts --format cjs --dts --target=node18 --minify && bash install_scripts.sh",
"test": "jest --no-cache --testPathPattern='webpack/.*/__spec__/.*\\.spec\\.ts'",
"test:coverage": "jest --no-cache --testPathPattern='webpack/.*/__spec__/.*\\.spec\\.ts' --coverage",
"test:build": "jest ./build.spec.ts --no-cache"
},
"dependencies": {
Expand Down Expand Up @@ -112,4 +113,4 @@
"vue-style-loader": "^4.1.3",
"vue-template-compiler": "^2.7.16"
}
}
}

0 comments on commit ca8d5f0

Please sign in to comment.