Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkzt committed Jun 22, 2020
1 parent 0f4a6e3 commit 9732ebd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.13.0
- name: install
run: |
yarn install
- name: Build
run: |
yarn install --frozen-lockfile
yarn demo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
23 changes: 10 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,16 @@ jobs:
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
- name: Install dependencies
# TODO: add check yarn.lock
# run: yarn install --frozen-lockfile
run: yarn install
- name: install, lint, test
run: |
yarn install --frozen-lockfile
yarn lint
yarn test
env:
CI: true

- name: Lint
run: yarn lint
env:
CI: true

- name: Test
run: yarn test
env:
CI: true
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage/clover.xml
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ module.exports = {
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.(t|j)s?(x)']
collectCoverageFrom: ['src/**/*.(t|j)s?(x)', '!src/example/**/**']
}

0 comments on commit 9732ebd

Please sign in to comment.