From 6cdbfdbc49fea06d40a5053f6c1c50a4fbba8fb3 Mon Sep 17 00:00:00 2001 From: Dan Bovey Date: Wed, 9 Feb 2022 16:45:38 +0000 Subject: [PATCH] Replace Travis with GitHub Actions --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ .travis.yml | 11 ----------- 2 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..60c6074 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Test + +on: + pull_request: + branches: [master] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Cache node modules + id: cache + uses: actions/cache@v2 + with: + path: node_modules + key: cache-node-modules-${{ hashFiles('package-lock.json') }} + - name: npm install + if: steps.cache.outputs.cache-hit != 'true' + run: npm ci + - run: npm run lint + - run: npm run test + - run: npm run build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e30ff7f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: node_js -node_js: - - "8" - - "12" -script: - - npm run lint - - npm run test - - npm run build -cache: - directories: - - $HOME/.npm \ No newline at end of file