Skip to content

Commit

Permalink
ci: Run tests on local and SL
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Mar 26, 2020
1 parent 693052b commit 7439eb8
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 11 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml → .github/workflows/test-local.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
name: ci
name: test-local

on:
- push
- pull_request
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
tags-ignore:
- '*'

jobs:
build:
Expand All @@ -24,12 +32,9 @@ jobs:
node-version: ${{ matrix.target }}

- name: List versions
continue-on-error: true
run: |
node -v && npm -v && which npm
# - name: Install global dependencies
# run: |
# npm i -g npm@latest --quiet
node -v && npm version && which npm && pwd && npx envinfo
- name: Install dependencies
run: |
Expand All @@ -49,7 +54,6 @@ jobs:
pwd && ls -la
- name: Run Test
continue-on-error: true
run: |
npm run test:dev
58 changes: 58 additions & 0 deletions .github/workflows/test-sauce-labs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: test-sauce-labs

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
tags-ignore:
- '*'

jobs:
build:
name: ${{ matrix.os }} ${{ matrix.target }}
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os: [ubuntu-18.04]
target: [13.x]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup node@${{ matrix.target }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.target }}

- name: List versions
run: |
node -v && npm version && which npm && pwd && npx envinfo
- name: Install dependencies
run: |
npm ci --quiet
- name: Lint
run: |
npm run lint
- name: Build
run: |
npm run build:test && npm run build:config
- name: Check build
shell: bash
run: |
pwd && ls -la
- name: Run Test
run: |
npm run test:sl:dev
3 changes: 1 addition & 2 deletions src/tests/wdio.sl.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const baseCapability: SauceLabsCapability = {
screenResolution: '800x600',
seleniumVersion: '3.141.59',
},
specs: ['./dist/tests/**/full-icu.spec.js'],
// specs: ['./dist/tests/**/*.spec.js'],
specs: ['./dist/tests/**/*.spec.js'],
// specs: ['./dist/tests/app-datepicker/tests.js'],
// specs: ['./dist/tests/app-datepicker-dialog/tests.js'],
browserName: 'googlechrome',
Expand Down

0 comments on commit 7439eb8

Please sign in to comment.