diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e5952f4..09e9109 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,5 @@ name: Continuous Integration -on: - push: - branches: [ $default-branch ] - pull_request: - branches: [ $default-branch ] +on: [push] jobs: tests: @@ -26,15 +22,17 @@ jobs: uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '16' + node-version: 16 - name: Cache dependencies uses: actions/cache@v2 with: path: ~/.npm key: npm-${{ hashFiles('package-lock.json') }} restore-keys: npm- + - name: Install packages + run: npm ci - name: Lint code - run: npm run lint + run: npm run lint - name: Run browser tests in Saucelabs run: npm run test-ci timeout-minutes: 5