Skip to content

Commit

Permalink
disable saucelabs tests (#1549)
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky authored Sep 5, 2023
1 parent a968129 commit afe06a4
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 48 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,54 +65,54 @@ jobs:
yarn subscriptions size
fi
browser-tests-destination:
env:
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}

runs-on: ubuntu-20.04

timeout-minutes: 20

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@master

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Build
run: NODE_ENV=production yarn build:browser-destinations && yarn browser build-web

- name: Run Saucelabs Tests
working-directory: packages/browser-destinations-integration-tests
shell: bash
run: |
yarn start-destination-server &
yarn test:sauce
# browser-tests-destination:
# # env: # Disable saucelabs - we blew through our quota.
# # SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
# # SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}

# runs-on: ubuntu-20.04

# timeout-minutes: 20

# strategy:
# matrix:
# node-version: [18.x]

# steps:
# - uses: actions/checkout@master

# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node-version }}
# registry-url: 'https://registry.npmjs.org'

# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "::set-output name=dir::$(yarn cache dir)"

# - uses: actions/cache@v2
# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-

# - name: Install Dependencies
# run: yarn install --frozen-lockfile
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: Build
# run: NODE_ENV=production yarn build:browser-destinations && yarn browser build-web

# - name: Run Saucelabs Tests
# working-directory: packages/browser-destinations-integration-tests
# shell: bash
# run: |
# yarn start-destination-server &
# yarn test:sauce

browser-tests-core:
runs-on: ubuntu-20.04
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import type { Options } from '@wdio/types'
import dns from 'node:dns'

export const config: Options.Testrunner = {
beforeSession: () => {
// Fixes: github.com/webdriverio/webdriverio/issues/8279
// @ts-ignore - this should be in node 18 https://nodejs.org/api/dns.html#dnssetdefaultresultorderorder
dns.setDefaultResultOrder('ipv4first')
},
baseUrl: 'http://localhost:5555',
// WebdriverIO allows it to run your tests in arbitrary locations (e.g. locally or
// on a remote machine).
Expand Down

0 comments on commit afe06a4

Please sign in to comment.