2023-02-20 01:16:35 -05:00
|
|
|
name: E2E Docker Proxy Nginx Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
timeout-minutes: 10
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-06-11 20:36:44 -05:00
|
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
2023-02-20 01:16:35 -05:00
|
|
|
|
|
|
|
- name: Start containers
|
|
|
|
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build
|
|
|
|
|
|
|
|
- name: Install node
|
2023-07-11 03:11:56 -05:00
|
|
|
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3
|
2023-02-20 01:16:35 -05:00
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
- name: npm setup
|
|
|
|
run: |
|
|
|
|
npm config set fetch-retries="5"
|
|
|
|
npm config set fetch-retry-factor="50"
|
|
|
|
npm config set fetch-retry-mintimeout="20000"
|
|
|
|
npm config set fetch-retry-maxtimeout="80000"
|
|
|
|
- name: verdaccio cli
|
|
|
|
run: npm install -g verdaccio --registry http://localhost
|
|
|
|
- name: gastby cli
|
|
|
|
run: npm install -g gatsby-cli --registry http://localhost
|
|
|
|
- name: netlify cli
|
|
|
|
run: npm install -g netlify-cli --registry http://localhost
|
|
|
|
- name: angular cli
|
|
|
|
run: npm install -g @angular/cli --registry http://localhost
|
|
|
|
|
|
|
|
- name: Stop containers
|
|
|
|
if: always()
|
|
|
|
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" down
|