2023-02-20 01:16:35 -05:00
|
|
|
name: E2E Docker Proxy Apache Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
schedule:
|
|
|
|
# run every sunday
|
|
|
|
- cron: '0 0 * * 0'
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
timeout-minutes: 10
|
|
|
|
runs-on: ubuntu-latest
|
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-07-07 10:25:53 -05:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
|
2023-02-20 01:16:35 -05:00
|
|
|
|
|
|
|
- name: Start containers
|
|
|
|
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build
|
|
|
|
|
|
|
|
- name: Install node
|
2024-02-13 02:15:45 -05:00
|
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
2023-02-20 01:16:35 -05:00
|
|
|
with:
|
2023-11-29 14:50:45 -05: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 01:16:35 -05: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 09:14:24 -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()
|
|
|
|
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" down
|