mirror of
https://github.com/basecamp/trix.git
synced 2026-05-17 12:00:38 +00:00
Configure Sauce Connect Proxy to work with Github actions
See: - https://docs.saucelabs.com/secure-connections/sauce-connect/index.html - https://docs.saucelabs.com/dev/cli/saucectl/usage/ci/github-actions/
This commit is contained in:
@@ -15,6 +15,16 @@ jobs:
|
||||
with:
|
||||
path: test/node_modules
|
||||
key: ${{ runner.os }}-${{ hashFiles('test/yarn.lock') }}
|
||||
- uses: saucelabs/sauce-connect-action@v2
|
||||
with:
|
||||
username: ${{ secrets.SAUCE_USERNAME }}
|
||||
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
|
||||
tunnelName: Basecamp-CI_tunnel_name
|
||||
region: us-west
|
||||
|
||||
- run: yarn install
|
||||
- run: bin/ci
|
||||
|
||||
env:
|
||||
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
|
||||
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
|
||||
|
||||
@@ -13,12 +13,4 @@ if [ -n "$CI" ]; then
|
||||
echo "GITHUB_BASE_REF: $GITHUB_BASE_REF"
|
||||
fi
|
||||
|
||||
if [ -n "$CI" ] && [ "$GITHUB_REF" == "refs/heads/main" ] && [ -z "$GITHUB_HEAD_REF" ]; then
|
||||
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX1VTRVJOQU1FPWJhc2VjYW1wX3RyaXgK)
|
||||
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX0FDQ0VTU19LRVk9MjY3OGE4NzMtNzJmNC00NzU2LTkzYjUtZjFhOGUyZTc3ODIxCg==)
|
||||
else
|
||||
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX1VTRVJOQU1FPWJhc2VjYW1wX3RyaXhfZGV2Cg==)
|
||||
$(base64 --decode <<< ZXhwb3J0IFNBVUNFX0FDQ0VTU19LRVk9NTIzODNlNTItZTM4NC00MzZjLWFkMmUtMGZmNTcyNjIyNjc5Cg==)
|
||||
fi
|
||||
|
||||
yarn test
|
||||
|
||||
Reference in New Issue
Block a user