diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..647f4de --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,13 @@ +on: [push,pull_request] +name: Test +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + - name: Install dependencies + run: npm install + - name: Run test + run: npm test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1e51633..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -sudo: required -dist: trusty -language: node_js -cache: - directories: - - node_modules - -node_js: - - 'stable' - -install: - - npm install - -# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI -before_script: - - "export DISPLAY=:99.0" - - "sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\"" - - sleep 3 # give xvfb some time to start - -script: - - npm run test