3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-23 02:29:33 +01:00
setup-node/.github/workflows/proxy.yml

57 lines
1.3 KiB
YAML
Raw Normal View History

2020-05-03 15:49:04 +02:00
name: proxy
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
- releases/*
paths-ignore:
- '**.md'
jobs:
test-proxy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: ubuntu:latest
options: --dns 127.0.0.1
services:
squid-proxy:
image: datadog/squid:latest
ports:
- 3128:3128
env:
https_proxy: http://squid-proxy:3128
steps:
- uses: actions/checkout@v2
- name: Clear tool cache
run: rm -rf $RUNNER_TOOL_CACHE/*
- name: Setup node 10
uses: ./
with:
node-version: 10.x
- name: Verify node and npm
run: __tests__/verify-node.sh 10
test-bypass-proxy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
https_proxy: http://no-such-proxy:3128
2020-05-04 00:12:05 +02:00
no_proxy: api.github.com,github.com,nodejs.org,registry.npmjs.org,*.s3.amazonaws.com,s3.amazonaws.com
2020-05-03 15:49:04 +02:00
steps:
- uses: actions/checkout@v2
- name: Clear tool cache
run: rm -rf $RUNNER_TOOL_CACHE/*
2020-05-04 00:12:05 +02:00
- name: Setup node 11
2020-05-03 15:49:04 +02:00
uses: ./
with:
2020-05-04 00:12:05 +02:00
node-version: 11
2020-05-03 15:49:04 +02:00
- name: Verify node and npm
2020-05-04 00:40:24 +02:00
run: __tests__/verify-node.sh 11