mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
subgraph typings generation during coverage run (#1421)
* subgraph typings generation during coverage run * cache node_modules * ignore src/@types/ for coverage
This commit is contained in:
parent
065f5bc711
commit
a5819bac58
42
.github/workflows/ci.yml
vendored
42
.github/workflows/ci.yml
vendored
@ -72,21 +72,35 @@ jobs:
|
||||
name: coverage-${{ runner.os }}
|
||||
path: coverage/
|
||||
|
||||
# coverage:
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: [test]
|
||||
# if: ${{ success() && github.actor != 'dependabot[bot]' }}
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - uses: actions/download-artifact@v2
|
||||
# with:
|
||||
# name: coverage-${{ runner.os }}
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [test]
|
||||
if: ${{ success() && github.actor != 'dependabot[bot]' }}
|
||||
|
||||
# - uses: paambaati/codeclimate-action@v3.0.0
|
||||
# env:
|
||||
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||
# with:
|
||||
# debug: true
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: cache-node-modules
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-coverage-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: ${{ runner.os }}-coverage-${{ env.cache-name }}-
|
||||
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: coverage-${{ runner.os }}
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run codegen:apollo
|
||||
|
||||
- uses: paambaati/codeclimate-action@v3.0.0
|
||||
env:
|
||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||
|
||||
storybook:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
@ -25,7 +25,8 @@ const customJestConfig = {
|
||||
collectCoverage: true,
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{ts,tsx}',
|
||||
'!src/**/*.{stories,test}.{ts,tsx}'
|
||||
'!src/**/*.{stories,test}.{ts,tsx}',
|
||||
'!src/@types/**/*.{ts,tsx}'
|
||||
],
|
||||
testPathIgnorePatterns: ['node_modules', '\\.cache', '.next', 'coverage']
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user