This repository was archived by the owner on Apr 6, 2023. It is now read-only.
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml -41Lines changed: 0 additions & 41 deletions Collapse file
Copy file name to clipboard +17Lines changed: 17 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: Lint commit |
| 2 | + |
| 3 | +on: pull_request |
| 4 | + |
| 5 | +jobs: |
| 6 | + commit: |
| 7 | + name: Lint commit messages |
| 8 | + runs-on: ubuntu-latest |
| 9 | + |
| 10 | + steps: |
| 11 | + - name: Checkout repository |
| 12 | + uses: actions/checkout@v2 |
| 13 | + with: |
| 14 | + fetch-depth: 0 |
| 15 | + |
| 16 | + - name: Check commit message |
| 17 | + uses: wagoid/commitlint-github-action@v1 |
Collapse file
Copy file name to clipboard +24Lines changed: 24 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: Lint |
| 2 | + |
| 3 | +on: pull_request |
| 4 | + |
| 5 | +jobs: |
| 6 | + code: |
| 7 | + name: Lint code |
| 8 | + runs-on: ubuntu-latest |
| 9 | + steps: |
| 10 | + - name: Checkout repository |
| 11 | + uses: actions/checkout@v2 |
| 12 | + with: |
| 13 | + fetch-depth: 0 |
| 14 | + |
| 15 | + - name: Set up Node |
| 16 | + uses: actions/setup-node@v1 |
| 17 | + with: |
| 18 | + node-version: 12 |
| 19 | + |
| 20 | + - name: Install dependencies |
| 21 | + uses: bahmutov/npm-install@v1 |
| 22 | + |
| 23 | + - name: Run ESLint |
| 24 | + run: yarn lint |
Collapse file
Copy file name to clipboard +33Lines changed: 33 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: Test |
| 2 | + |
| 3 | +on: pull_request |
| 4 | + |
| 5 | +jobs: |
| 6 | + code: |
| 7 | + name: Test code |
| 8 | + runs-on: ubuntu-latest |
| 9 | + |
| 10 | + env: |
| 11 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 12 | + |
| 13 | + steps: |
| 14 | + - name: Checkout repository |
| 15 | + uses: actions/checkout@v2 |
| 16 | + with: |
| 17 | + fetch-depth: 0 |
| 18 | + |
| 19 | + - name: Set up Node |
| 20 | + uses: actions/setup-node@v1 |
| 21 | + with: |
| 22 | + node-version: 12 |
| 23 | + |
| 24 | + - name: Install dependencies |
| 25 | + uses: bahmutov/npm-install@v1 |
| 26 | + |
| 27 | + - name: Run Jest |
| 28 | + run: yarn test --coverage |
| 29 | + |
| 30 | + - name: Coveralls |
| 31 | + uses: coverallsapp/github-action@master |
| 32 | + with: |
| 33 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
Collapse file
Copy file name to clipboard +24Lines changed: 24 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +name: Type checking |
| 2 | + |
| 3 | +on: pull_request |
| 4 | + |
| 5 | +jobs: |
| 6 | + code: |
| 7 | + name: Type checking code |
| 8 | + runs-on: ubuntu-latest |
| 9 | + steps: |
| 10 | + - name: Checkout repository |
| 11 | + uses: actions/checkout@v2 |
| 12 | + with: |
| 13 | + fetch-depth: 0 |
| 14 | + |
| 15 | + - name: Set up Node |
| 16 | + uses: actions/setup-node@v1 |
| 17 | + with: |
| 18 | + node-version: 12 |
| 19 | + |
| 20 | + - name: Install dependencies |
| 21 | + uses: bahmutov/npm-install@v1 |
| 22 | + |
| 23 | + - name: Run TypeScript |
| 24 | + run: yarn tsc |
Collapse file
Copy file name to clipboardExpand all lines: package.json +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
13 | 13 | "build": "lerna exec --parallel -- rollup -c ../../rollup.config.js", |
14 | 14 | "test": "jest", |
15 | 15 | "lint": "eslint packages --ext ts,tsx", |
16 | | - "coveralls": "cat ./coverage/lcov.info | coveralls" |
| 16 | + "coveralls": "cat ./coverage/lcov.info | coveralls", |
| 17 | + "tsc": "tsc --skipLibCheck" |
17 | 18 | }, |
18 | 19 | "devDependencies": { |
19 | 20 | "@babel/core": "^7.4.3", |
|
Collapse file
Copy file name to clipboardExpand all lines: tsconfig.json +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
24 | 24 | "@unform/*": ["packages/*/lib"] |
25 | 25 | } |
26 | 26 | }, |
27 | | - "exclude": ["node_modules", "packages/**/__tests__"] |
| 27 | + "include": ["packages/**/*"], |
| 28 | + "exclude": ["node_modules", "packages/**/__tests__", "dist"] |
28 | 29 | } |