Skip to content

Commit 1d5990e

Browse files
committed
Add new E2E testRigor tests
1 parent 0cfbc78 commit 1d5990e

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

.github/workflows/main.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
name: CI
55

6-
on: [pull_request]
6+
# on: [pull_request]
7+
8+
on:
9+
push:
10+
branches: [add-new-e2e-tests]
711

812
jobs:
913
unit-tests:
@@ -150,4 +154,45 @@ jobs:
150154
- name: Run tests
151155
run: bin/functional
152156

157+
testrigor-tests:
158+
name: testRigor Tests
159+
runs-on: ubuntu-latest
160+
env:
161+
MAGENTO_TEST_SUITE_ID: ${{vars.MAGENTO_TEST_SUITE_ID}}
162+
MAGENTO_AUTH_TOKEN: ${{secrets.MAGENTO_AUTH_TOKEN}}
163+
LOCALHOST_URL: ${{vars.LOCALHOST_URL}}
164+
165+
steps:
166+
- uses: actions/checkout@v2
167+
168+
- name: Setup PHP
169+
uses: shivammathur/setup-php@master
170+
with:
171+
php-version: ${{ matrix.php-versions }}
172+
extensions: curl, dom, intl, json, openssl
173+
174+
- name: Cache Composer packages
175+
id: composer-cache
176+
uses: actions/cache@v4
177+
with:
178+
path: vendor
179+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
180+
restore-keys: |
181+
${{ runner.os }}-php-
182+
183+
- name: Install dependencies
184+
if: steps.composer-cache.outputs.cache-hit != 'true'
185+
run: composer install --prefer-dist --no-progress --no-suggest
153186

187+
- name: Use Node.js 22
188+
uses: actions/setup-node@v1
189+
with:
190+
node-version: '22.9.0'
191+
- name: Install testRigor Command Line
192+
run: |
193+
npm install -g testrigor-cli
194+
sudo apt-get install jq
195+
196+
- name: Run testRigor tests
197+
run: |
198+
chmod +x ./dev/tests/testRigor/testrigor && ./dev/tests/testRigor/testrigor

dev/tests/testRigor/testrigor

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
curl -I "$LOCALHOST_URL"
4+
curl -I "$LOCALHOST_URL:9200"

0 commit comments

Comments
 (0)