Skip to content

Commit

Permalink
Use new library for Test-Composer interactions (#203)
Browse files Browse the repository at this point in the history
* Remove dead code

* Use new test-composer client

* Remove unit tests that weren't useful

* Optimize pipeline

* Remove obsolete dependency

* Bump @saucelabs/cypress-plugin lib
  • Loading branch information
alexplischke authored Oct 11, 2022
1 parent 6f21caf commit 77cd161
Show file tree
Hide file tree
Showing 11 changed files with 401 additions and 3,176 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/integration.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/kitchen-sink.yml

This file was deleted.

46 changes: 45 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,38 @@ env:
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run unit-test

integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm ci --production
- name: Run integration tests
env:
SAUCE_CYPRESS_VIDEO_RECORDING: false
run: bash tests/integration/integration-tests.sh

docker:
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -33,9 +63,22 @@ jobs:
push: false
build-args: |
BUILD_TAG=pipeline-test
load: true
context: .
file: ./Dockerfile
tags: |
saucelabs/stt-cypress-mocha-node:local
- name: Run kitchen sink test
uses: saucelabs/saucectl-run-action@v1
with:
working-directory: ./tests/kitchen-sink-tests
sauce-username: ${{ secrets.SAUCE_USERNAME }}
sauce-access-key: ${{ secrets.SAUCE_ACCESS_KEY }}

build-windows-bundle:
runs-on: windows-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -112,6 +155,7 @@ jobs:
build-mac-bundle:
runs-on: macos-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
23 changes: 0 additions & 23 deletions .github/workflows/validate.yml

This file was deleted.

Loading

0 comments on commit 77cd161

Please sign in to comment.