Skip to content

Commit 4152aef

Browse files
committedDec 12, 2021
Replace travis with github action
1 parent bebe77b commit 4152aef

File tree

3 files changed

+56
-6
lines changed

3 files changed

+56
-6
lines changed
 

‎.github/workflows/build.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
lint-coverage:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Setup node 16
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: 16
16+
cache: "npm"
17+
- run: npm ci
18+
- run: npm run lint
19+
- run: npm run bundle-and-test
20+
env:
21+
REPORTER: "min"
22+
- run: npm run coverage
23+
env:
24+
REPORTER: "min"
25+
- name: Send coverage to Coveralls
26+
uses: coverallsapp/github-action@1.1.3
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
30+
run-tests:
31+
needs: lint-coverage
32+
runs-on: ubuntu-latest
33+
34+
strategy:
35+
matrix:
36+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
37+
node_version:
38+
- 12.20.0
39+
- 14.13.0
40+
- 16
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Setup node ${{ matrix.node_version }}
45+
uses: actions/setup-node@v2
46+
with:
47+
node-version: ${{ matrix.node_version }}
48+
cache: "npm"
49+
- run: npm ci
50+
- run: npm run test
51+
env:
52+
REPORTER: "min"
53+
- run: npm run esm-to-cjs-and-test
54+
env:
55+
REPORTER: "min"

‎.travis.yml

-5
This file was deleted.

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![NPM version](https://img.shields.io/npm/v/clap.svg)](https://www.npmjs.com/package/clap)
2-
[![Build Status](https://travis-ci.org/lahmatiy/clap.svg?branch=master)](https://travis-ci.org/lahmatiy/clap)
2+
[![Build Status](https://github.com/lahmatiy/clap/actions/workflows/build.yml/badge.svg)](https://github.com/lahmatiy/clap/actions/workflows/build.yml)
33
[![Coverage Status](https://coveralls.io/repos/github/lahmatiy/clap/badge.svg?branch=master)](https://coveralls.io/github/lahmatiy/clap?branch=master)
44

55
# Clap.js

0 commit comments

Comments
 (0)
Please sign in to comment.