From 2264b1436d25bd7a1493ded735df1c4504a467fd Mon Sep 17 00:00:00 2001 From: FND Date: Wed, 8 Dec 2021 14:33:34 +0100 Subject: [PATCH] replaced Travis CI with GitHub Actions Travis ain't no good no more --- .editorconfig | 2 +- .github/workflows/tests.yaml | 20 ++++++++++++++++++++ .travis.yml | 11 ----------- README.md | 2 +- 4 files changed, 22 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/tests.yaml delete mode 100644 .travis.yml diff --git a/.editorconfig b/.editorconfig index 079a0c1..d3b509d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,7 +11,7 @@ max_line_length = 80 indent_style = tab indent_size = 4 -[*.md] +[*.{md,yaml}] indent_style = space [COMMIT_EDITMSG] diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..6bd1b38 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,20 @@ +name: tests +on: +- push +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 12.x + - 16.x + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: npm + - run: npm install-test + env: + CI: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2be5be8..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: node_js -node_js: -- 8 -- 12 - -before_install: -- sudo add-apt-repository -y ppa:linuxuprising/java -- sudo apt-get -qq update -- echo debconf shared/accepted-oracle-license-v1-2 select true | sudo debconf-set-selections -- echo debconf shared/accepted-oracle-license-v1-2 seen true | sudo debconf-set-selections -- sudo apt-get install -y oracle-java13-installer diff --git a/README.md b/README.md index 9face81..8460d42 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ complate-stream [complate](https://complate.org)'s core library for rendering HTML [![package version](https://img.shields.io/npm/v/complate-stream.svg?style=flat)](https://www.npmjs.com/package/complate-stream) -[![build status](https://travis-ci.org/complate/complate-stream.svg?branch=master)](https://travis-ci.org/complate/complate-stream) +[![build status](https://github.com/complate/complate-stream/workflows/tests/badge.svg)](https://github.com/complate/complate-stream/actions) [![Greenkeeper badge](https://badges.greenkeeper.io/complate/complate-stream.svg)](https://greenkeeper.io)