From 1a8d9ad5cf864ec26f6b0366e634e5a40620e7a7 Mon Sep 17 00:00:00 2001 From: AdrieanKhisbe Date: Tue, 2 Jan 2024 21:47:43 +0100 Subject: [PATCH] Replace travis by github actions :wave: --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 1 + README.md | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ddafc3e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ + +name: Bundle Phobia CLI CI + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 16.x + - 18.x + - 20.x + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm test + - run: npm run publish-coverage diff --git a/.travis.yml b/.travis.yml index 3d9fcfc..a70b7e9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +# 🪦 Deprecation in progress, see .github/workflows/ci.yml language: node_js dist: focal diff --git a/README.md b/README.md index 7da1653..73ff199 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # bundle-phobia-cli [![npm](https://img.shields.io/npm/v/bundle-phobia-cli.svg)](https://www.npmjs.com/package/bundle-phobia-cli) -[![Build Status](https://travis-ci.com/AdrieanKhisbe/bundle-phobia-cli.svg?branch=master)](https://travis-ci.com/AdrieanKhisbe/bundle-phobia-cli) +[![Build Status](https://github.com/AdrieanKhisbe/configue/actions/workflows/ci.yml/badge.svg)](https://github.com/AdrieanKhisbe/configue/actions) [![codecov](https://codecov.io/gh/AdrieanKhisbe/bundle-phobia-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/AdrieanKhisbe/bundle-phobia-cli) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)