Skip to content

Commit 591b3f7

Browse files
committed
ci(travis): remove travis
1 parent e923951 commit 591b3f7

File tree

3 files changed

+58
-22
lines changed

3 files changed

+58
-22
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
branches:
10+
- main
11+
- master
12+
13+
jobs:
14+
ci:
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
node: [14]
21+
22+
steps:
23+
- name: Checkout 🛎
24+
uses: actions/checkout@master
25+
26+
- name: Setup node env 🏗
27+
uses: actions/[email protected]
28+
with:
29+
node-version: ${{ matrix.node }}
30+
31+
- name: Cache node_modules 📦
32+
uses: actions/[email protected]
33+
with:
34+
path: ~/.npm
35+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36+
restore-keys: |
37+
${{ runner.os }}-node-
38+
39+
- name: Install dependencies 👨🏻‍💻
40+
run: npm ci
41+
42+
- name: Run linter 👀
43+
run: npm run lint
44+
45+
- name: Run tests 👀
46+
run: npm run test
47+
48+
- name: Run size-limit 👀
49+
run: npm run check-size
50+
51+
- name: Run tree-shaking check 👀
52+
run: npm run tree-shake
53+

.travis.yml

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

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<h5 align="center">⭐️ Star me on GitHub — it helps!</h5>
1111

1212
<p align="center">
13-
<a href="https://travis-ci.org/webistomin/favoritos">
14-
<img src="https://travis-ci.org/webistomin/favoritos.svg?branch=master"
15-
alt="Travis CI">
13+
<a href="https://github.com/webistomin/favoritos/actions/workflows/ci.yml">
14+
<img src="https://github.com/webistomin/favoritos/actions/workflows/ci.yml/badge.svg"
15+
alt="GitHub Actions">
1616
</a>
1717
<a href="https://codecov.io/gh/webistomin/favoritos">
1818
<img src="https://codecov.io/gh/webistomin/favoritos/branch/master/graph/badge.svg" alt="codecoverage" />
@@ -28,8 +28,8 @@
2828

2929
<p align="center">
3030
<a href="https://www.npmjs.com/package/favoritos"><img alt="npm" src="https://img.shields.io/npm/v/favoritos" /></a>
31-
<a href="https://www.npmjs.com/package/favoritos"><img alt="downloads" src="https://img.shields.io/npm/dm/favoritos" /></a>
32-
<a href="https://www.jsdelivr.com/package/npm/favoritos"><img alt="jsdeliver" src="https://data.jsdelivr.com/v1/package/npm/favoritos/badge?style=rounded"/></a>
31+
<a href="https://www.npmjs.com/package/favoritos"><img alt="downloads" src="https://img.shields.io/npm/dt/favoritos" /></a>
32+
<a href="https://www.jsdelivr.com/package/npm/favoritos"><img alt="jsdeliver" src="https://img.shields.io/jsdelivr/npm/hy/favoritos?style=rounded"/></a>
3333
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3434
<img src="https://img.shields.io/badge/all_contributors-1-orange.svg" alt="contributors">
3535
<!-- ALL-CONTRIBUTORS-BADGE:END -->

0 commit comments

Comments
 (0)