Skip to content

Commit 7bf78e5

Browse files
committed
ci(github): uplaod coverage report
1 parent 7101cb9 commit 7bf78e5

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Test
22

33
on:
44
push:
@@ -11,18 +11,19 @@ jobs:
1111

1212
runs-on: ubuntu-latest
1313

14-
strategy:
15-
matrix:
16-
node-version: [14.x, 16.x]
17-
1814
steps:
1915
- uses: actions/checkout@v2
20-
- name: Use Node.js ${{ matrix.node-version }}
16+
- name: install
2117
uses: actions/setup-node@v2
2218
with:
23-
node-version: ${{ matrix.node-version }}
19+
node-version: 16.x
2420
cache: 'yarn'
2521
- run: yarn install --frozen-lockfile
22+
- name: Run Linter
2623
- run: yarn lint
24+
- name: Test
2725
- run: yarn test
28-
- run: yarn build
26+
- name: Upload coverage report to Codecov
27+
uses: codecov/codecov-action@v2.1.0
28+
with:
29+
fail_ci_if_error: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ts-transformer-optimize-const-enum
22

3-
[![](https://img.shields.io/npm/v/ts-transformer-optimize-const-enum.svg)](https://www.npmjs.com/package/ts-transformer-optimize-const-enum) ![CI Status](https://github.com/Fonger/ts-transformer-optimize-const-enum/actions/workflows/build.yml/badge.svg)
3+
[![](https://img.shields.io/npm/v/ts-transformer-optimize-const-enum.svg)](https://www.npmjs.com/package/ts-transformer-optimize-const-enum) ![CI Status](https://github.com/Fonger/ts-transformer-optimize-const-enum/actions/workflows/test.yml/badge.svg)
44

55
A typescript transformer that convert exported const enum into object literal.
66

0 commit comments

Comments
 (0)