Skip to content

Commit

Permalink
chore(ci): simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Aug 14, 2021
1 parent ae4ccd0 commit 009d105
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
paths:
- 'src/**'
branches:
- master
- master
pull_request:
paths:
- 'src/**'
branches:
- master
- master

jobs:
test:
Expand All @@ -22,7 +22,7 @@ jobs:
nodejs: [10, 12, 14]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.nodejs }}

Expand All @@ -38,20 +38,10 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}

- name: Install
run: |
pnpm install
pnpm install -g c8
run: pnpm install

- name: Compiles
run: pnpm run build

- name: Test w/ Coverage
run: c8 --include=src pnpm test

- name: Report
if: matrix.nodejs >= 14
run: |
c8 report --reporter=text-lcov > coverage.lcov
bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Type Checks
run: pnpm run types
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"scripts": {
"build": "rollup -c",
"test": "tsc --noEmit"
"types": "tsc --noEmit"
},
"dependencies": {
"esbuild": "^0.11.13",
Expand Down

0 comments on commit 009d105

Please sign in to comment.