Skip to content

Commit d96b851

Browse files
ci: update CI and (re)enable coverage (#826) [skip ci]
1 parent 4aea52f commit d96b851

File tree

3 files changed

+21
-37
lines changed

3 files changed

+21
-37
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: ci
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-node@v2
9+
- run: yarn --frozen-lockfile
10+
- run: yarn build
11+
- run: yarn test --coverage
12+
- if: github.event.repository.fork == false && github.event_name != 'pull_request'
13+
run: yarn dv-scripts ci
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17+
- uses: codecov/codecov-action@v2

.github/workflows/main.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
"extends": "dv-scripts"
4747
},
4848
"jest": {
49+
"coveragePathIgnorePatterns": [
50+
"ReactNativeFastImageExample*",
51+
"ReactNativeFastImageExampleServer*"
52+
],
4953
"modulePathIgnorePatterns": [
5054
"ReactNativeFastImageExample*",
5155
"ReactNativeFastImageExampleServer*"

0 commit comments

Comments
 (0)