Skip to content

Commit 209a14f

Browse files
committed
.
1 parent e3f5809 commit 209a14f

File tree

1 file changed

+39
-32
lines changed

1 file changed

+39
-32
lines changed

.github/workflows/workflow.yml

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ${{ matrix.operating-system }}
66
strategy:
77
matrix:
8-
operating-system: [ubuntu-latest, windows-latest, macos-latest]
8+
operating-system: [ubuntu-latest, windows-latest]
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v2
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ${{ matrix.operating-system }}
2525
strategy:
2626
matrix:
27-
operating-system: [ubuntu-latest, windows-latest, macos-latest]
27+
operating-system: [ubuntu-latest, windows-latest]
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v2
@@ -45,34 +45,41 @@ jobs:
4545
if: runner.os == 'windows'
4646
run: __tests__/verify-java.ps1 13.0.2
4747

48-
# run-with-proxy:
49-
# name: Run with proxy
50-
# runs-on: ubuntu-latest
51-
# services:
52-
# squid:
53-
# image: dakale/squid
54-
# ports: ['3128:3128']
55-
# options: '--health-cmd "exit 0" --health-interval 3s'
56-
# env:
57-
# http_proxy: http://localhost:3128
58-
# https_proxy: http://localhost:3128
59-
# steps:
60-
# - name: Block non proxied traffic
61-
# run: |
62-
# echo "127.0.0.0 registry.npm.js nodejs.org github.com api.github.com download.java.net static.azul.com" | sudo tee -a /etc/hosts
63-
# - name: Checkout
64-
# uses: actions/checkout@v2
65-
66-
# - name: Setup Node.js 12.x
67-
# uses: actions/setup-node@v1
68-
# with:
69-
# node-version: 12.x
70-
71-
# - name: npm install
72-
# run: npm install
73-
74-
# - name: Lint
75-
# run: npm run format-check
48+
test-proxy:
49+
runs-on: ubuntu-latest
50+
container:
51+
image: ubuntu:latest
52+
options: --dns 127.0.0.1
53+
services:
54+
squid-proxy:
55+
image: datadog/squid:latest
56+
ports:
57+
- 3128:3128
58+
env:
59+
https_proxy: http://squid-proxy:3128
60+
steps:
61+
- uses: actions/checkout@v2
62+
- name: Clear tool cache
63+
run: rm -rf $RUNNER_TOOL_CACHE/*
64+
- name: Setup Java 13
65+
uses: ./
66+
with:
67+
java-version: 13.0.2
68+
- name: Verify Java 13
69+
run: __tests__/verify-java.sh 13.0.2
7670

77-
# - name: npm test
78-
# run: npm test
71+
test-bypass-proxy:
72+
runs-on: ubuntu-latest
73+
env:
74+
https_proxy: http://no-such-proxy:3128
75+
no_proxy: github.com,static.azul.com
76+
steps:
77+
- uses: actions/checkout@v2
78+
- name: Clear tool cache
79+
run: rm -rf $RUNNER_TOOL_CACHE/*
80+
- name: Setup Java 13
81+
uses: ./
82+
with:
83+
java-version: 13.0.2
84+
- name: Verify Java 13
85+
run: __tests__/verify-java.sh 13.0.2

0 commit comments

Comments
 (0)