Skip to content

Commit

Permalink
EMA-150 auto test memory optimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanyi committed Jul 29, 2024
1 parent 07e18be commit aec5114
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,24 @@ jobs:
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
retry:
max_attempts: 3
- name: Checkout code
shell: bash
run: |
sudo apt-get update
sudo apt-get install git -y
git clone --branch ${{ steps.extract_branch.outputs.branch }} https://github.com/emartech/magento2-extension.git
retry:
max_attempts: 3
- name: Login to GitLab
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ secrets.GITLAB_USER }}
password: ${{ secrets.GITLAB_TOKEN }}
retry:
max_attempts: 3
- name: Install system tools
shell: bash
run: |
Expand All @@ -48,13 +54,17 @@ jobs:
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-compose-plugin docker-buildx-plugin -y
retry:
max_attempts: 3
- name: Build mage_node image
shell: bash
run: |
cd magento2-extension/dev
DOCKER_BUILDKIT=1 docker build -f testv2/tools/docker/Dockerfile-mage-node --build-arg NPM_TOKEN=$NPM_TOKEN -t "mage_node" .
env:
NPM_TOKEN: ${{ secrets.GITLAB_TOKEN }}
retry:
max_attempts: 3
- name: Run unittest
shell: bash
run: |
Expand All @@ -63,9 +73,11 @@ jobs:
env:
VERSION: ${{ matrix.magento-versions }}
NPM_TOKEN: ${{ secrets.GITLAB_TOKEN }}
retry:
max_attempts: 3
e2e-tests:
runs-on: github-actions-runner-emarsys
needs: unit-tests
# needs: unit-tests
permissions:
contents: "read"
strategy:
Expand All @@ -79,18 +91,24 @@ jobs:
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
retry:
max_attempts: 3
- name: Checkout code
shell: bash
run: |
sudo apt-get update
sudo apt-get install git -y
git clone --branch ${{ steps.extract_branch.outputs.branch }} https://github.com/emartech/magento2-extension.git
retry:
max_attempts: 3
- name: Login to GitLab
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_URL }}
username: ${{ secrets.GITLAB_USER }}
password: ${{ secrets.GITLAB_TOKEN }}
retry:
max_attempts: 3
- name: Install system tools
shell: bash
run: |
Expand All @@ -105,13 +123,17 @@ jobs:
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-compose-plugin docker-buildx-plugin -y
retry:
max_attempts: 3
- name: Build mage_node image
shell: bash
run: |
cd magento2-extension/dev
DOCKER_BUILDKIT=1 docker build -f testv2/tools/docker/Dockerfile-mage-node --build-arg NPM_TOKEN=$NPM_TOKEN -t "mage_node" .
env:
NPM_TOKEN: ${{ secrets.GITLAB_TOKEN }}
retry:
max_attempts: 3
- name: Run e2stest
shell: bash
run: |
Expand All @@ -120,3 +142,5 @@ jobs:
env:
VERSION: ${{ matrix.magento-versions }}
NPM_TOKEN: ${{ secrets.GITLAB_TOKEN }}
retry:
max_attempts: 3

0 comments on commit aec5114

Please sign in to comment.