2020-05-19 09:25:54 -04:00
|
|
|
name: proxy
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
2021-12-30 08:58:49 -05:00
|
|
|
- '**.md'
|
|
|
|
push:
|
2020-05-19 09:25:54 -04:00
|
|
|
branches:
|
2021-12-30 08:58:49 -05:00
|
|
|
- main
|
2020-05-19 09:25:54 -04:00
|
|
|
- releases/*
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
2021-12-30 08:58:49 -05:00
|
|
|
|
2020-05-19 09:25:54 -04:00
|
|
|
jobs:
|
|
|
|
test-proxy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: ubuntu:latest
|
|
|
|
options: --dns 127.0.0.1
|
|
|
|
services:
|
|
|
|
squid-proxy:
|
2022-11-09 12:18:47 -05:00
|
|
|
image: ubuntu/squid:latest
|
2020-05-19 09:25:54 -04:00
|
|
|
ports:
|
|
|
|
- 3128:3128
|
|
|
|
env:
|
|
|
|
https_proxy: http://squid-proxy:3128
|
|
|
|
steps:
|
2022-04-01 04:13:52 -04:00
|
|
|
- uses: actions/checkout@v3
|
2020-05-19 09:25:54 -04:00
|
|
|
- name: Clear tool cache
|
|
|
|
run: rm -rf $RUNNER_TOOL_CACHE/*
|
2021-06-30 08:07:45 -04:00
|
|
|
- name: Setup node 14
|
2020-05-19 09:25:54 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
2021-06-30 08:07:45 -04:00
|
|
|
node-version: 14.x
|
2020-05-19 09:25:54 -04:00
|
|
|
- name: Verify node and npm
|
2021-06-30 08:07:45 -04:00
|
|
|
run: __tests__/verify-node.sh 14
|
2020-05-19 09:25:54 -04:00
|
|
|
|
|
|
|
test-bypass-proxy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
https_proxy: http://no-such-proxy:3128
|
|
|
|
no_proxy: api.github.com,github.com,nodejs.org,registry.npmjs.org,*.s3.amazonaws.com,s3.amazonaws.com
|
|
|
|
steps:
|
2022-04-01 04:13:52 -04:00
|
|
|
- uses: actions/checkout@v3
|
2020-05-19 09:25:54 -04:00
|
|
|
- name: Clear tool cache
|
|
|
|
run: rm -rf $RUNNER_TOOL_CACHE/*
|
|
|
|
- name: Setup node 11
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
node-version: 11
|
|
|
|
- name: Verify node and npm
|
|
|
|
run: __tests__/verify-node.sh 11
|