Skip to content

Commit

Permalink
Merge branch 'main' into devx-2465-testcafe-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 authored Jan 3, 2024
2 parents 47d57ad + 3af4169 commit a515f9d
Show file tree
Hide file tree
Showing 78 changed files with 2,372 additions and 1,116 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
version: ${{ steps.set_version.outputs.version }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set Release Version
id: set_version
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Unshallow
run: |
git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'

- uses: actions/cache@v3
with:
Expand Down
95 changes: 43 additions & 52 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'

- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -37,12 +37,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'
cache: true

- name: Run tests
Expand All @@ -56,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -82,12 +82,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'
cache: true

- name: Build Project
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -133,15 +133,15 @@ jobs:
run: ./saucectl run -c .sauce/replay.yml --timeout 10m

- name: Saucectl RUN - CLI Driven
run: ./saucectl run replay "tests/e2e/replay/recording.json" -c "" --name "CLI Driven" --timeout 10m
run: ./saucectl run replay "tests/e2e/replay/recording.json" -c "" --name "CLI Driven" --timeout 10m -r us-west-1

playwright:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -155,15 +155,15 @@ jobs:
run: ./saucectl run -c .sauce/playwright.yml --timeout 10m

- name: Saucectl RUN - CLI Driven
run: ./saucectl run playwright ".*.js" -c "" --name "CLI Driven" --browser chromium --rootDir tests/e2e/playwright/ --playwright.version 1.33.0 --timeout 10m
run: ./saucectl run playwright ".*.js" -c "" --name "CLI Driven" --browser chromium --rootDir tests/e2e/playwright/ --playwright.version 1.33.0 --timeout 10m -r us-west-1

testcafe:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -177,15 +177,15 @@ jobs:
run: ./saucectl run -c .sauce/testcafe.yml --timeout 10m

- name: Saucectl RUN - CLI Driven
run: ./saucectl run testcafe "*.test.js" -c "" --name "CLI Driven" --browser chrome --rootDir tests/e2e/testcafe/ --testcafe.version 2.5.0 --timeout 10m
run: ./saucectl run testcafe "*.test.js" -c "" --name "CLI Driven" --browser chrome --rootDir tests/e2e/testcafe/ --testcafe.version 2.5.0 --timeout 10m -r us-west-1

cypress-v1alpha:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -205,7 +205,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -221,7 +221,14 @@ jobs:
- name: Saucectl RUN - CLI Driven
run: |
./saucectl run cypress "cypress/e2e/**/*.js" -c "" --name "CLI Driven" --rootDir tests/e2e/cypress_10/e2e/ --browser chrome --cypress.version 12.11.0 --cypress.configFile "cypress.config.js" --timeout 10m
./saucectl run cypress "cypress/e2e/**/*.js" \
-c "" --name "CLI Driven" \
--rootDir tests/e2e/cypress_10/e2e/ \
--browser chrome \
--cypress.version 12.11.0 \
--cypress.configFile "cypress.config.js" \
--timeout 10m \
-r us-west-1
cypress-windows:
needs: build
Expand All @@ -232,7 +239,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -252,7 +259,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -268,30 +275,13 @@ jobs:
- name: Saucectl RUN - CLI Driven
run: |
./saucectl run espresso -c "" --name "CLI Driven" --app ./tests/e2e/espresso/mda-1.0.17-20.apk --testApp ./tests/e2e/espresso/mda-androidTest-1.0.17-20.apk --emulator name="Android GoogleApi Emulator",platformVersion=11.0 --testOptions.size small
- name: Saucectl RUN - env var file
env:
REGION: us-west-1
CONCURRENCY: 2
TAG: env-tag
APP: ./tests/e2e/espresso/mda-1.0.17-20.apk
TEST_APP: ./tests/e2e/espresso/mda-androidTest-1.0.17-20.apk
SUITE_NAME: "Sauce test env var config file"
TEST_CLASS1: com.example.android.testing.androidjunitrunnersample.CalculatorAddParameterizedTest
TEST_CLASS2: com.example.android.testing.androidjunitrunnersample.CalculatorInstrumentationTest
EMULATOR_NAME: "Android GoogleApi Emulator"
PLATFORM_VERSION1: 11.0
PLATFORM_VERSION2: 10.0
GOOGLE_PIXEL_REAL_DEVICE: "Google Pixel C GoogleAPI Emulator"
PLATFORM_VERSION3: 8.1
ARTIFACTS_DOWNLOAD_WHEN: always
ARTIFACTS_MATCH1: junit.xml
ARTIFACTS_MATCH2: device.log
ARTIFACTS_DOWNLOAD_FOLDER: ./artifacts/
SLACK_CHANNEL: devx-slack-notifications
NOTIFICATION_SEND: always
run: |
./saucectl run -c .sauce/espresso-env-var.yml
./saucectl run espresso -c "" \
--name "CLI Driven" \
--app ./tests/e2e/espresso/mda-1.0.17-20.apk \
--testApp ./tests/e2e/espresso/mda-androidTest-1.0.17-20.apk \
--emulator name="Android GoogleApi Emulator",platformVersion=11.0 \
--testOptions.size small \
-r us-west-1
xcuitest:
needs: build
Expand All @@ -302,7 +292,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -326,7 +316,8 @@ jobs:
--testApp ./tests/e2e/xcuitest/SauceLabs-Demo-App-Runner.XCUITest.ipa \
--testOptions.class MyDemoAppUITests.ProductListingPageTest \
--device name="iPhone.*" \
--timeout 10m
--timeout 10m \
-r us-west-1
apitest:
needs: build
Expand All @@ -339,7 +330,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -351,15 +342,15 @@ jobs:

- name: Saucectl RUN - Config Driven
run: |
./saucectl run -c .sauce/apitest.yml
./saucectl run -c .sauce/apitest.yml -r us-west-1
playwright-cucumberjs:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -381,7 +372,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand All @@ -400,7 +391,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download saucectl Binary
uses: actions/download-artifact@v3
Expand Down
5 changes: 0 additions & 5 deletions .sauce/apitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,3 @@ suites:
useRemoteTests: true
tests:
- 6308e6d4c08b875edeee138e

- name: "Upload and Run tests for saucectl-example"
projectName: saucectl-example
testMatch:
- tests/api/*
2 changes: 1 addition & 1 deletion .sauce/cypress-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rootDir: tests/e2e/cypress_10/e2e/
defaults:
timeout: 5m
cypress:
version: 12.17.4
version: 13.6.0
configFile: "cypress.config.js"
suites:
# - name: "(experimental) webkit test"
Expand Down
33 changes: 0 additions & 33 deletions .sauce/espresso-env-var.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .sauce/imagerunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ suites:
dst: "hello.txt"
env: # Arbitrary Key-Value pairs set as environment variables inside the container.
MY_FOO: bar
services:
- name: "service1"
image: "busybox:1.35.0"
imagePullAuth: # Credentials used to pull the container image
user: $DOCKER_USERNAME
token: $DOCKER_PASSWORD
entrypoint: "cat hello.txt" # What command to start the container with
files: # Which files should be uploaded and mounted within the container
- src: "tests/e2e/imagerunner/hello.txt"
dst: "hello.txt"
env: # Arbitrary Key-Value pairs set as environment variables inside the container.
MY_FOO: bar
2 changes: 1 addition & 1 deletion .sauce/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defaults:
timeout: 5m
rootDir: tests/e2e/playwright/
playwright:
version: 1.37.1
version: 1.40.1
suites:
- name: "chromium test in sauce"
platformName: "Windows 10"
Expand Down
2 changes: 1 addition & 1 deletion .sauce/testcafe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sauce:
defaults:
timeout: 5m
testcafe:
version: 3.2.0
version: 3.4.0
rootDir: tests/e2e/testcafe/
suites:
- name: Chrome in sauce
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the binary here
FROM golang:1.20 as builder
FROM golang:1.21 as builder

WORKDIR /app

Expand Down
Loading

0 comments on commit a515f9d

Please sign in to comment.