Skip to content

Commit c05d82c

Browse files
committed
#192: Github actions implenetation
1 parent 46e6524 commit c05d82c

File tree

4 files changed

+60
-17
lines changed

4 files changed

+60
-17
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [12.x, 14.x]
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: yarn install, lint, build, and test
21+
run: |
22+
yarn install
23+
yarn lint
24+
yarn build
25+
yarn test --coverage
26+
env:
27+
CI: true
28+
- name: Coveralls GitHub Action
29+
uses: coverallsapp/[email protected]
30+
with:
31+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/nodejs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Node CI
2+
3+
on: pull_request
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [12.x, 14.x]
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Use Node.js ${{ matrix.node-version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- name: yarn install, lint, build, and test
18+
run: |
19+
yarn install
20+
yarn lint
21+
yarn build
22+
yarn test --coverage
23+
env:
24+
CI: true
25+
- name: Coveralls GitHub Action
26+
uses: coverallsapp/[email protected]
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![react-promise-loader](https://repository-images.githubusercontent.com/236146663/28c41100-3f90-11ea-9922-a1ed44b60cbe)
44

55
[![Version](https://img.shields.io/npm/v/react-promise-loader)](https://www.npmjs.com/package/react-promise-loader)
6-
[![Build](https://travis-ci.org/awibox/react-promise-loader.svg?branch=master)](https://travis-ci.org/awibox/react-promise-loader)
6+
[![Build](https://img.shields.io/github/workflow/status/awb-pw/awb-pw/Deploy)](https://github.com/awibox/react-promise-loader/actions)
77
[![Coverage](https://coveralls.io/repos/github/awibox/react-promise-loader/badge.svg?branch=master)](https://coveralls.io/github/awibox/react-promise-loader?branch=master)
88
[![Minified size](https://img.shields.io/bundlephobia/min/react-promise-loader)](https://github.com/awibox/react-promise-loader/blob/master/LICENSE)
99
[![Downloads](https://img.shields.io/npm/dm/react-promise-loader)](https://www.npmjs.com/package/react-promise-loader)

0 commit comments

Comments
 (0)