From c20e05a037132310ad911cc6b973d85ee56b43aa Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 8 Dec 2020 09:56:07 +0100 Subject: [PATCH] Switch to Github actions for CI --- .github/workflows/ci.yml | 13 +++++++++++++ .travis.yml | 17 ----------------- README.md | 2 +- 3 files changed, 14 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..5ea7bbfed --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,13 @@ +name: ci +on: [push] +jobs: + build-and-test: + runs-on: ubuntu-latest + name: Build and test + steps: + - uses: actions/checkout@v1 + - uses: bahmutov/npm-install@v1 + with: + useLockFile: false + - run: npm test + - run: npm run test:test262 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 731ec895e..000000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: node_js -sudo: false -cache: npm -matrix: - include: - - node_js: '6' - - node_js: '8' - - node_js: '10' - - node_js: '10' - env: TEST_SUITE=test262 - - node_js: '12' -script: > - if [ "$TEST_SUITE" != "test262" ]; then - npm test - else - npm run test:test262 - fi diff --git a/README.md b/README.md index ef86c3333..5eacee8c4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Acorn -[![Build Status](https://travis-ci.org/acornjs/acorn.svg?branch=master)](https://travis-ci.org/acornjs/acorn) +[![Build Status](https://github.com/acornjs/acorn/workflows/ci/badge.svg)](https://github.com/acornjs/acorn/actions) [![NPM version](https://img.shields.io/npm/v/acorn.svg)](https://www.npmjs.com/package/acorn) [![CDNJS](https://img.shields.io/cdnjs/v/acorn.svg)](https://cdnjs.com/libraries/acorn)