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)