name: Node CI on: [push] jobs: build: runs-on: ubuntu-latest #strategy: # matrix: # node-version: [8.x, 10.x, 12.x] steps: - name: Checkout uses: actions/checkout@v2 - name: Use Node.js 14.x uses: actions/setup-node@v1 with: node-version: 14.x - name: Get Yarn cache directory id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - name: Use Yarn cache uses: actions/cache@v2 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - name: Install run: yarn --prefer-offline --frozen-lockfile --non-interactive --silent - name: Build run: yarn build - name: Test run: yarn test --ci env: CI: true - name: saucelabs run: yarn run test:browser env: CI: true SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}