Skip to content

Commit b3c247e

Browse files
committed
ci(gh-actions): add release action
1 parent 6fecfd3 commit b3c247e

File tree

2 files changed

+39
-3
lines changed

2 files changed

+39
-3
lines changed

.github/workflows/check-branch.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: check branch
2+
3+
on: pull_request
4+
5+
jobs:
6+
check-branch:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: 'lts/*'
13+
cache: 'yarn'
14+
15+
- name: Install dependencies
16+
run: yarn install
17+
18+
- name: Linting
19+
run: yarn lint
20+
21+
- name: Unit Tests
22+
run: yarn test:unit:coverage
23+
24+
- name: Test types
25+
run: yarn test:types
26+
27+
- name: Upload coverage reports to Codecov
28+
uses: codecov/codecov-action@v3
29+
env:
30+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
31+
32+
- name: Coveralls
33+
uses: coverallsapp/github-action@master
34+
with:
35+
github-token: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Check size
38+
run: yarn test:size

.github/workflows/actions.yml .github/workflows/release.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: check branch
1+
name: release
22

33
on:
44
push:
55
branches: ['master', 'alpha', 'beta']
6-
pull_request:
7-
branches: ['master', 'alpha', 'beta']
86

97
jobs:
108
check-branch:

0 commit comments

Comments
 (0)