Skip to content

Commit

Permalink
Upgrade TypeScript, Refactor CI test task
Browse files Browse the repository at this point in the history
  • Loading branch information
chances committed Aug 11, 2024
1 parent b97f2c8 commit 351a253
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,22 @@ jobs:
with:
node-version: 12.x
- name: Install Dependencies
run: |
npm install
run: npm install
- name: Test
if: success()
run: |
make test-ci
run: make test-ci
continue-on-error: true
env:
CI: true
- name: Build Site
if: success()
run: |
make
run: make
env:
CI: true
NODE_ENV: production
- name: Visual Diff with Percy
if: success()
run: |
npx percy snapshot public/
run: npx percy snapshot public/
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
- name: Publish on Netlify
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
SASS = ./node_modules/.bin/sass
TSC = ./node_modules/.bin/tsc
FUSE = node fuse.js
BROWSER_SYNC = ./node_modules/.bin/browser-sync
TS_LINT = ./node_modules/.bin/tslint
Expand Down Expand Up @@ -60,14 +59,14 @@ test: lint

cover:
@rm -rf coverage
@${TSC}
@npx tsc
@${NYC} ${TAPE} './ts/test/**/*.spec.ts' | ${FAUCET}
@xdg-open ./coverage/index.html
.PHONY: cover

test-ci: lint
@rm -rf coverage
@${TSC}
@npx tsc
@${NYC} ${TAPE} './ts/test/**/*.spec.ts' | ${TAP_DOT}
@${CODECOV} -f ./coverage/*.json -t 3a8a22dc-d6c4-4c57-b7e8-edfa34ea9b85
.PHONY: test-ci
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"sass": "^1.77.8",
"tap-dot": "^2.0.0",
"tape": "^5.8.0",
"ts-node": "^6.0.0",
"ts-node": "^6.2.0",
"tslint": "^6.1.2",
"typescript": "^3.8.3",
"typescript": "^3.9.10",
"uglify-js": "^3.9.1"
},
"dependencies": {
Expand Down Expand Up @@ -74,4 +74,4 @@
],
"all": true
}
}
}

0 comments on commit 351a253

Please sign in to comment.