Skip to content

Commit

Permalink
Merge pull request #424 from clarin-eric/sc5
Browse files Browse the repository at this point in the history
Update to SauceConnect 5
  • Loading branch information
andmor- authored Nov 7, 2024
2 parents 6974821 + 59a7481 commit ffe5fd5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
GITHUB_TOKEN: ${{ github.token }}
SAUCE_CONNECT_VERSION: '4.9.2'
SAUCE_CONNECT_VERSION: '5.2.2'

jobs:
prepare:
Expand Down Expand Up @@ -86,11 +86,13 @@ jobs:
CI_VERSION: ${{ needs.prepare.outputs.version }}
- name: Setup tunnel proxy to SauceLabs
run: |
curl https://saucelabs.com/downloads/sc-${SAUCE_CONNECT_VERSION}-linux.tar.gz | tar -xz # Install sauce connect
chmod 777 -R ./sc-${SAUCE_CONNECT_VERSION}-linux
PATH=./sc-${SAUCE_CONNECT_VERSION}-linux/bin:${PATH}
sc -u "${USERNAME}" -k "${SAUCE_ACCESS_KEY}" -i "github-action-tunnel-${RUN_ID}" --readyfile /tmp/sc.ready --region us-west-1 &
until [ -f /tmp/sc.ready ]; do sleep 1; done
mkdir sauce-connect-${SAUCE_CONNECT_VERSION}_linux.x86_64
(cd sauce-connect-${SAUCE_CONNECT_VERSION}_linux.x86_64
curl https://saucelabs.com/downloads/sauce-connect/${SAUCE_CONNECT_VERSION}/sauce-connect-${SAUCE_CONNECT_VERSION}_linux.x86_64.tar.gz | tar -xz) # Install sauce connect
chmod 777 -R ./sauce-connect-${SAUCE_CONNECT_VERSION}_linux.x86_64
PATH=./sauce-connect-${SAUCE_CONNECT_VERSION}_linux.x86_64:${PATH}
sc run -u "${USERNAME}" -k "${SAUCE_ACCESS_KEY}" -i "github-action-tunnel-${RUN_ID}" --api-address :8032 --region us-west-1 --proxy-localhost allow &
until curl localhost:8032/readiness > /dev/null 2>&1; do sleep 1; done
echo "SC ready"
env:
USERNAME: ${{ secrets.SAUCE_USERNAME }}
Expand Down

0 comments on commit ffe5fd5

Please sign in to comment.