This is an automated email from the ASF dual-hosted git repository. jonnybot pushed a commit to branch remove-circle-ci in repository https://gitbox.apache.org/repos/asf/groovy-geb.git
commit 78c8a2cf842b915a282715665ac46d59513b10fc Author: Jonny Carter <[email protected]> AuthorDate: Fri Mar 7 16:02:34 2025 -0600 Add SauceLabs tests to GitHub Actions --- .circleci/config.yml | 31 -------------------------- .github/workflows/saucelabs.yml | 48 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 31 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b19f0c4b..6b284f7c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,32 +15,6 @@ version: 2 jobs: - saucelabs: - docker: - - image: eclipse-temurin:21-jdk - resource_class: large - environment: - GRADLE_OPTS: -Xmx1024m -XX:MaxMetaspaceSize=256m - GRADLE_USER_HOME: .gradle-home - steps: - - checkout - - restore_cache: - keys: - - gradle-home-saucelabs-{{ .Branch }} - - gradle-home-saucelabs-master - - gradle-home-saucelabs - - run: - command: | - ./gradlew --no-daemon -Pci --max-workers 5 --parallel allSauceLabsTests - - run: *collectTestResults - - store_test_results: - path: ~/test-results/ - - store_artifacts: - path: build/reports - - save_cache: - key: gradle-home-saucelabs-{{ .Branch }}-{{ epoch }} - paths: - - .gradle-home # TODO: Return LambdaTest integration to the CI pipeline. Jobs are failing in CI when calling to LambdaTest, but not locally. # lambdatest: # docker: @@ -178,10 +152,6 @@ workflows: version: 2 build-workflow: jobs: - - saucelabs: - filters: - branches: - ignore: /pull\/[0-9]+/ # - lambdatest: # requires: # - check @@ -202,7 +172,6 @@ workflows: # - upload: # requires: # - dockerised-cross-browser -# - saucelabs # - lambdatest # - ie # filters: diff --git a/.github/workflows/saucelabs.yml b/.github/workflows/saucelabs.yml new file mode 100644 index 00000000..59670110 --- /dev/null +++ b/.github/workflows/saucelabs.yml @@ -0,0 +1,48 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Test in SauceLabs + +on: [pull_request, workflow_dispatch] + +permissions: + contents: read + +jobs: + test: + strategy: + fail-fast: false + matrix: + java: [11, 17, 21] + runs-on: ubuntu-latest + env: + DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: ${{ matrix.java }} + check-latest: true + - uses: gradle/actions/setup-gradle@v4 + - name: Run Sauce Labs Tests + run: ./gradlew --no-daemon -Pci --max-workers 5 --parallel allSauceLabsTests + timeout-minutes: 60 + - name: Upload reports + uses: actions/upload-artifact@v4 + if: always() + with: + name: build-reports-${{ matrix.java }} + path: '**/build/reports/'
