Skip to content

Commit 9ae9e34

Browse files
authored
Merge pull request #39 from jhomarolo/master
build(dependencies): update git action and dev dependencies
2 parents 642ad71 + ba83c3a commit 9ae9e34

File tree

7 files changed

+13563
-1083
lines changed

7 files changed

+13563
-1083
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"parser": "@babel/eslint-parser",
1414
"parserOptions": {
1515
"ecmaVersion": 2018,
16-
"requireConfigFile":false
16+
"requireConfigFile": false
1717
},
1818
"rules": {
1919
"semi": ["error", "never"],

.github/workflows/cd.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CD Build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
if: "!contains(github.event.head_commit.message, 'skip ci')"
10+
runs-on: ubuntu-18.04
11+
12+
strategy:
13+
matrix:
14+
node-version: [14.x]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Install Packages
24+
run: npm ci
25+
26+
- name: Installing dependencies
27+
run: npm i --ignore-scripts
28+
29+
- name: Build Step
30+
env:
31+
CI: ""
32+
run: npm run build --if-present
33+
34+
- name: Running Linter - ESLint
35+
run: npm run lint
36+
37+
- name: Run Semantic Release
38+
run: npx semantic-release
39+
env:
40+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,35 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
4-
name: CI
1+
name: CI build
52

63
on:
7-
push:
8-
branches: [ master ]
4+
pull_request:
5+
branches: [master]
96

107
jobs:
118
build:
12-
if: "!contains(github.event.head_commit.message, 'skip ci')"
13-
runs-on: ubuntu-18.04
14-
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: Use Node.js (14.15.0)
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: '14.15.0'
9+
runs-on: ubuntu-latest
2110

22-
- name: Install Packages
23-
run: npm ci
11+
strategy:
12+
matrix:
13+
node-version: [14.x]
2414

25-
- name: Installing dependencies
26-
run: npm i --ignore-scripts
27-
28-
- name: Build Step
29-
env:
30-
CI: ""
31-
run: npm run build --if-present
32-
33-
- name: Running Linter - ESLint
34-
run: npm run lint
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
22+
- name: Installing dependencies
23+
run: npm i --ignore-scripts
24+
- name: Running tests
25+
run: |
26+
npm test
27+
npx nyc --reporter=lcov npm test && npx codecov
28+
env:
29+
CI: true
30+
- name: Upload coverage to Codecov
31+
uses: codecov/codecov-action@v2
32+
33+
- name: Running Linter - ESLint
34+
run: npm run lint
3535

36-
- name: Run Semantic Release
37-
run: npx semantic-release
38-
env:
39-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
40-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/on_pull_request.yml

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

.github/workflows/on_push.yml

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

0 commit comments

Comments
 (0)