Skip to content

Commit b2e3db9

Browse files
committed
another workflow
1 parent 9c7f4a7 commit b2e3db9

File tree

1 file changed

+20
-28
lines changed

1 file changed

+20
-28
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ name: CI
33
on: [push]
44

55
env:
6-
NODE_VERSION: 10.x
6+
NODE_VERSION: 12.x
77

88
jobs:
99
install:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Trigger CI
14-
- uses: actions/checkout@v2
13+
- name: CI
14+
uses: actions/checkout@v2
1515
- name: Use Node ${{ env.NODE_VERSION }}
1616
uses: actions/setup-node@v2
1717
with:
@@ -22,32 +22,9 @@ jobs:
2222
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
2323
- name: Install dependencies
2424
run: yarn install --frozen-lockfile
25-
# - name: run lint
26-
# run: |
27-
# yarn lint
28-
# - name: run tests
29-
# run: |
30-
# yarn test --watchAll=false --coverage --reporters=default
31-
# - name: Upload coverage to Codecov
32-
# uses: codecov/[email protected]
33-
# with:
34-
# token: ${{ secrets.CODECOV_TOKEN }}
35-
# - name: build
36-
# run: |
37-
# yarn build
38-
39-
# - name: semantic release
40-
# uses: cycjimmy/semantic-release-action@v2
41-
# id: semantic
42-
# with:
43-
# branch: master
44-
# extra_plugins: |
45-
# @semantic-release/git@v9
46-
# @semantic-release/changelog
4725
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5026
CI: true
27+
5128
lint:
5229
runs-on: ubuntu-latest
5330
needs: [install]
@@ -75,8 +52,23 @@ jobs:
7552
with:
7653
path: '**/node_modules'
7754
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
78-
- name: Test
7955
- name: Test
8056
run: yarn test
8157
env:
8258
CI: true
59+
60+
build:
61+
runs-on: ubuntu-latest
62+
needs: [install]
63+
64+
steps:
65+
- name: Build
66+
uses: actions/checkout@v2
67+
- uses: actions/cache@v2
68+
with:
69+
path: '**/node_modules'
70+
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('**/yarn.lock') }}
71+
- name: Build
72+
run: yarn build
73+
env:
74+
CI: true

0 commit comments

Comments
 (0)