Skip to content

Commit cab8552

Browse files
committed
Add GitHub Actions CI
1 parent 4763017 commit cab8552

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
on: [push, pull_request]
3+
env:
4+
CI: true
5+
6+
jobs:
7+
run:
8+
name: Node ${{ matrix.node }}
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
fail-fast: false
13+
14+
steps:
15+
- name: Clone repository
16+
uses: actions/checkout@v2
17+
18+
- name: Set Node.js version
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: "12.x"
22+
23+
- run: node --version
24+
- run: npm --version
25+
26+
- name: Install npm dependencies
27+
run: npm ci
28+
29+
- name: Run tests
30+
run: npm test

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# coronavirus-tracker-cli
1+
# coronavirus-tracker-cli [![Build Status](https://github.com/sagarkarira/coronavirus-tracker-cli/workflows/Tests/badge.svg)](https://github.com/sagarkarira/coronavirus-tracker-cli/actions?workflow=Tests)
22

33
Track The Corona virus from your CLI
44

0 commit comments

Comments
 (0)