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