From 72f399d07b6bd17bc21b7f13d5ed2fe6406089c7 Mon Sep 17 00:00:00 2001 From: speedytwenty Date: Fri, 25 Mar 2022 11:46:28 -0600 Subject: [PATCH] Initial workflow action for testing PRs and commits to master --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ README.md | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c9ec681 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Build +on: + push: + branches: [ master ] + pull_request: +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + # Set to the former tested version. Should probably update this + # to reflect the release schedule. https://nodejs.org/en/about/releases/ + node-version: [10.x, 12.x, 13.x] + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn test diff --git a/README.md b/README.md index 1fdc703..a5be414 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ cli-table3 =============================================================================== [![npm version](https://img.shields.io/npm/v/cli-table3.svg)](https://www.npmjs.com/package/cli-table3) -[![Build Status](https://travis-ci.com/cli-table/cli-table3.svg?branch=master)](https://travis-ci.com/cli-table/cli-table3) +![Build Status](https://github.com/cli-table/cli-table3/actions/workflows/test.yml/badge.svg?branch=master) This utility allows you to render unicode-aided tables on the command line from your node.js scripts.