Skip to content

Commit

Permalink
Set env variable to be job level instead of global
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jul 23, 2024
1 parent 3e2f1c7 commit e6177a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Based upon:
# https://github.com/actions/starter-workflows/blob/main/ci/go.yml
env:
HTTP_PROXY: http://ably:[email protected]:7128
HTTPS_PROXY: https://ably:[email protected]:7128

on:
pull_request:
Expand Down Expand Up @@ -45,6 +42,9 @@ jobs:
run: go install github.com/jstemmer/go-junit-report@latest

- name: Unit Tests
env:
HTTP_PROXY: http://ably:[email protected]:7128
HTTPS_PROXY: https://ably:[email protected]:7128
run: |
set -o pipefail
echo "proxy is $HTTP_PROXY"
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
env:
HTTP_PROXY: http://ably:[email protected]:7128
HTTPS_PROXY: https://ably:[email protected]:7128

on:
pull_request:
push:
Expand Down Expand Up @@ -35,6 +31,9 @@ jobs:
run: go install github.com/jstemmer/go-junit-report@latest

- name: Integration Tests with ${{ matrix.protocol }} Protocol
env:
HTTP_PROXY: http://ably:[email protected]:7128
HTTPS_PROXY: https://ably:[email protected]:7128
run: |
echo "proxy is $HTTP_PROXY"
set -o pipefail
Expand Down

0 comments on commit e6177a4

Please sign in to comment.