From 98c13d4356fdb6ca5668ddd35859e6c9b326b5cb Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sat, 5 Mar 2022 15:56:03 +0100 Subject: [PATCH] Use Playwright in CI for now --- .github/workflows/test.yml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 313fcb4..eab6cec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,33 +1,39 @@ name: Test on: push -concurrency: sauce-labs +concurrency: test +permissions: + contents: read jobs: test: runs-on: ubuntu-latest - name: Sauce Labs + name: Playwright steps: - name: Checkout uses: actions/checkout@v3 - - name: Use node 14 + - name: Use node 16 uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - name: Install run: npm install env: # Download Sauce Connect binary now instead of on first run SAUCE_CONNECT_DOWNLOAD_ON_INSTALL: true + - name: Add host + run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts + - name: Install Playwright + run: npx playwright install-deps + - name: Test + run: npm test # TODO - # - name: Add host - # run: echo "127.0.0.1 airtap.local" | sudo tee -a /etc/hosts # - name: Test # run: npm run test-browsers # env: # SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} # SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} - # - name: Coverage - # run: npm run coverage - # - name: Codecov - # uses: codecov/codecov-action@v2 - # with: - # file: coverage/lcov.info + - name: Coverage + run: npm run coverage + - name: Codecov + uses: codecov/codecov-action@v2 + with: + file: coverage/lcov.info