diff options
Diffstat (limited to 'preact/.github/workflows/saucelabs.yml')
-rw-r--r-- | preact/.github/workflows/saucelabs.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/preact/.github/workflows/saucelabs.yml b/preact/.github/workflows/saucelabs.yml new file mode 100644 index 0000000..e26ae2b --- /dev/null +++ b/preact/.github/workflows/saucelabs.yml @@ -0,0 +1,42 @@ +name: Saucelabs + +on: + push: + branches: + - master + - restructure + +jobs: + build_test: + name: Build & Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + - uses: actions/setup-node@v1 + with: + node-version: '14.x' + - name: Cache node modules + uses: actions/cache@v1 + env: + cache-name: cache-node-modules + with: + path: ~/.npm + # This uses the same name as the build-action so we can share the caches. + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - run: npm ci + - name: test + env: + CI: true + COVERAGE: true + FLAKEY: false + RUN_SAUCE_LABS: true + SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} + SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} + # Not using `npm test` since it rebuilds source which npm ci has already done + run: npm run test:unit |