Skip to content

Commit 5df48d6

Browse files
committed
ci(actions): Replace travis with github action
1 parent 6c27b3c commit 5df48d6

File tree

2 files changed

+48
-26
lines changed

2 files changed

+48
-26
lines changed

.github/workflows/test.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI Testing
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
test:
14+
name: Test on Node ${{ matrix.node-version }}
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [12.x]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- name: Cache Node.js modules
28+
uses: actions/cache@v2
29+
with:
30+
path: ~/.npm
31+
key: ${{ runner.OS }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
32+
restore-keys: |
33+
${{ runner.OS }}-node-${{ matrix.node-version }}-
34+
${{ runner.OS }}-node-
35+
${{ runner.OS }}-
36+
37+
- name: Install deps
38+
run: npm install
39+
- name: Linting
40+
run: npx ng lint
41+
- name: Build lib
42+
run: npx ng build ngx-ui-loader --prod
43+
- name: Testing
44+
run: npm test
45+
- name: Upload codecov report
46+
uses: codecov/codecov-action@v1
47+
- name: Production build
48+
run: npx ng build --prod

.travis.yml

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

0 commit comments

Comments
 (0)