diff --git a/.github/workflows/ci.yml b/.github/workflows/test-local.yml similarity index 80% rename from .github/workflows/ci.yml rename to .github/workflows/test-local.yml index 864854ec..bdc7dee6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/test-local.yml @@ -1,8 +1,16 @@ -name: ci +name: test-local on: - - push - - pull_request + push: + branches: + - '*' + tags-ignore: + - '*' + pull_request: + branches: + - '*' + tags-ignore: + - '*' jobs: build: @@ -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: | @@ -49,7 +54,6 @@ jobs: pwd && ls -la - name: Run Test - continue-on-error: true run: | npm run test:dev diff --git a/.github/workflows/test-sauce-labs.yml b/.github/workflows/test-sauce-labs.yml new file mode 100644 index 00000000..d1cb33f0 --- /dev/null +++ b/.github/workflows/test-sauce-labs.yml @@ -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 + diff --git a/src/tests/wdio.sl.config.ts b/src/tests/wdio.sl.config.ts index 42f3dfc0..4cb7cf61 100644 --- a/src/tests/wdio.sl.config.ts +++ b/src/tests/wdio.sl.config.ts @@ -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',