Skip to content

Commit

Permalink
upgrade github actions steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsinulhaq committed Oct 9, 2021
1 parent 1220ce1 commit 0004259
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,19 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
run: |
yarn --frozen-lockfile
yarn typecheck
yarn lint
yarn test --ci --coverage
yarn build
yarn test --ci --coverage
yarn lint
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
env:
CI: true
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage:
status:
project: off
patch: off
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
],
"scripts": {
"build": "rm -rf dist && rollup -c && cp src/styles.css dist && yarn tsc && rm -rf compiled",
"prepare": "husky install && yarn typecheck && yarn build && yarn test && yarn lint-staged && git add .size-snapshot.json",
"prepare": "husky install && yarn typecheck && yarn build && yarn test && yarn lint-staged",
"prettier": "prettier --write src/**/*.{ts,tsx}",
"typecheck": "tsc --noEmit",
"lint": "eslint \"{src,tests,examples}**/*.{ts,tsx}\"",
Expand Down

0 comments on commit 0004259

Please sign in to comment.