Skip to content

Commit

Permalink
Update Cypress (#185)
Browse files Browse the repository at this point in the history
* Update cypress

* Update cypress reporters

* Remove obsolete packages

* Update deprecated github action

* Remove obsolete job

* Update docker related actions

* Update gcloud actions
  • Loading branch information
alexplischke authored May 31, 2022
1 parent 94a84bd commit 922ab8e
Show file tree
Hide file tree
Showing 6 changed files with 307 additions and 1,495 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/kitchen-sink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Build image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: false
load: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ jobs:
npm version --no-git-tag-version ${{ steps.prep.outputs.version }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -116,7 +116,7 @@ jobs:
echo "cypress_version=$CYPRESS_VERSION" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
context: .
Expand Down
45 changes: 23 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,27 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
-
uses: docker/build-push-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: saucelabs/stt-cypress-mocha-node
tag_with_ref: true
cache_froms: saucelabs/stt-cypress-mocha-node:latest

- name: Build docker image
uses: docker/build-push-action@v3
with:
cache-from: |
saucelabs/stt-cypress-mocha-node:latest
push: false
build-args: |
BUILD_TAG=pipeline-test
build-ubuntu-bundle-and-test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Bundle Directory
run: bash ./scripts/bundle.sh
-
name: List bundle contents
run: ls -R bundle/

build-windows-bundle-and-test:
runs-on: windows-latest
steps:
Expand All @@ -60,10 +53,14 @@ jobs:
with:
python-version: 3.9

- name: Authenticate gcloud
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.GCS_RUNNER_SA_KEY }}'

- name: Install gcloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.GCS_RUNNER_SA_KEY }}
project_id: ${{ secrets.GCS_RUNNER_PROJECT_ID }}
env:
CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe
Expand Down Expand Up @@ -111,10 +108,14 @@ jobs:
with:
python-version: 3.9

- name: Authenticate gcloud
uses: 'google-github-actions/auth@v0'
with:
credentials_json: '${{ secrets.GCS_RUNNER_SA_KEY }}'

- name: Install gcloud SDK
uses: google-github-actions/setup-gcloud@v0
with:
service_account_key: ${{ secrets.GCS_RUNNER_SA_KEY }}
project_id: ${{ secrets.GCS_RUNNER_PROJECT_ID }}
env:
CLOUDSDK_PYTHON: ${{env.pythonLocation}}/python
Expand Down
Loading

0 comments on commit 922ab8e

Please sign in to comment.