2023-02-20 07:16:35 +01:00
|
|
|
name: E2E Docker Proxy Apache Test
|
|
|
|
|
2024-08-03 09:59:21 +02:00
|
|
|
concurrency:
|
|
|
|
group: docker-apache-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-02-20 07:16:35 +01:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
schedule:
|
|
|
|
# run every sunday
|
|
|
|
- cron: '0 0 * * 0'
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
timeout-minutes: 10
|
2024-08-03 10:30:42 +02:00
|
|
|
runs-on: ubuntu-20.04
|
2023-11-29 20:50:45 +01:00
|
|
|
env:
|
|
|
|
NODE_OPTIONS: --max_old_space_size=4096
|
2023-02-20 07:16:35 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-08-03 09:56:36 +02:00
|
|
|
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
2023-02-20 07:16:35 +01:00
|
|
|
|
|
|
|
- name: Start containers
|
2024-08-03 12:57:00 +02:00
|
|
|
run: docker compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build
|
2023-02-20 07:16:35 +01:00
|
|
|
|
|
|
|
- name: Install node
|
2024-08-03 09:56:36 +02:00
|
|
|
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
|
2023-02-20 07:16:35 +01:00
|
|
|
with:
|
2023-11-29 20:50:45 +01:00
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
- name: npm setup
|
|
|
|
run: |
|
|
|
|
npm config set fetch-retries="10"
|
|
|
|
npm config set fetch-retry-factor="50"
|
|
|
|
npm config set fetch-retry-mintimeout="20000"
|
|
|
|
npm config set fetch-retry-maxtimeout="80000"
|
2023-02-20 07:16:35 +01:00
|
|
|
- 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 15:14:24 +01:00
|
|
|
# - name: netlify cli
|
|
|
|
# run: npm install -g netlify-cli --registry http://localhost
|
2023-02-20 07:16:35 +01:00
|
|
|
- name: angular cli
|
|
|
|
run: npm install -g @angular/cli --registry http://localhost
|
|
|
|
|
|
|
|
- name: Stop containers
|
|
|
|
if: always()
|
2024-08-03 12:57:00 +02:00
|
|
|
run: docker compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" down
|