Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade airtap and use GitHub Actions (#443)
* Upgrade airtap and use GitHub Actions - Upgrade airtap to v4 - Move Sauce Labs tests from Travis to GitHub Actions - Use playwright for headless local testing * Debug
- Loading branch information
Showing
6 changed files
with
52 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
sauce_connect: true | ||
providers: | ||
- airtap-sauce | ||
|
||
browsers: | ||
- name: chrome | ||
version: latest | ||
platform: Windows 10 | ||
- name: internet explorer | ||
version: latest | ||
platform: Windows 10 | ||
- name: ie | ||
- name: firefox | ||
version: latest | ||
platform: Windows 10 | ||
- name: safari | ||
version: latest | ||
platform: Mac 10.13 | ||
- name: microsoftedge | ||
version: latest | ||
platform: Windows 10 | ||
- name: edge | ||
|
||
presets: | ||
local: | ||
providers: | ||
- airtap-playwright | ||
browsers: | ||
- name: chromium | ||
- name: firefox | ||
- name: webkit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: GitHub Actions CI | ||
name: Node.js | ||
|
||
on: [push, pull_request] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Sauce Labs | ||
on: push | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Set up node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- 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: Verify Sauce Connect | ||
run: ./node_modules/sauce-connect-launcher/sc/sc-4.6.2-linux/bin/sc --doctor || echo Bad | ||
env: | ||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | ||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | ||
- name: Test | ||
run: npm run test-browsers | ||
env: | ||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | ||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | ||
DEBUG: airtap* | ||
DEBUG_COLORS: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,6 @@ zlib.js | |
.babelrc | ||
.travis.yml | ||
.nyc_output | ||
.github | ||
coverage | ||
doc/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters