diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml new file mode 100644 index 0000000..98a2fff --- /dev/null +++ b/.github/workflows/validation.yml @@ -0,0 +1,30 @@ +name: Lint and Tests + +on: push + +jobs: + validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.OS }}-node- + - name: Install dependencies + run: npm install + - name: Lint + run: npm run lint + - name: Tests + run: npm run test:only + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + fail_ci_if_error: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e6c9774..0000000 --- a/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js - -node_js: stable - -cache: npm