2023-02-20 01:16:35 -05:00
|
|
|
name: E2E Docker Proxy Nginx Test
|
|
|
|
|
2024-08-03 03:30:42 -05:00
|
|
|
concurrency:
|
|
|
|
group: docker-nginx-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
|
2023-02-20 01:16:35 -05:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
timeout-minutes: 10
|
2024-08-03 03:30:42 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2023-11-29 14:50:45 -05:00
|
|
|
env:
|
|
|
|
NODE_OPTIONS: --max_old_space_size=4096
|
2023-02-20 01:16:35 -05:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-11-02 04:02:18 -05:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2023-02-20 01:16:35 -05:00
|
|
|
|
|
|
|
- name: Start containers
|
2024-08-03 05:57:00 -05:00
|
|
|
run: docker compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build
|
2023-02-20 01:16:35 -05:00
|
|
|
|
|
|
|
- name: Install node
|
2024-11-02 05:38:10 -05:00
|
|
|
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
|
2023-02-20 01:16:35 -05:00
|
|
|
with:
|
2023-11-29 14:50:45 -05:00
|
|
|
node-version-file: '.nvmrc'
|
2023-02-20 01:16:35 -05:00
|
|
|
- name: npm setup
|
|
|
|
run: |
|
2023-11-29 14:50:45 -05:00
|
|
|
npm config set fetch-retries="10"
|
2023-02-20 01:16:35 -05:00
|
|
|
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
|
2023-12-02 08:44:28 -05:00
|
|
|
#- name: netlify cli
|
|
|
|
# run: npm install -g netlify-cli --registry http://localhost
|
2023-02-20 01:16:35 -05:00
|
|
|
- name: angular cli
|
|
|
|
run: npm install -g @angular/cli --registry http://localhost
|
|
|
|
|
|
|
|
- name: Stop containers
|
|
|
|
if: always()
|
2024-08-03 05:57:00 -05:00
|
|
|
run: docker compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" down
|