-
Notifications
You must be signed in to change notification settings - Fork 222
50 lines (40 loc) · 1.6 KB
/
graphql-test.yml
File metadata and controls
50 lines (40 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: GraphQL Tests
on: [pull_request]
jobs:
build-graphql:
if: github.event.pull_request.head.repo.full_name == github.repository
strategy:
matrix:
php-version: ["8.2"]
magento-version: ["2.4.8-p3"]
runs-on: ubuntu-latest
timeout-minutes: 25
permissions:
contents: read
env:
PHP_VERSION: ${{ matrix.php-version }}
MAGENTO_VERSION: ${{ matrix.magento-version }}
ADMIN_USERNAME: ${{ secrets.MAGENTO_ADMIN_USERNAME }}
ADMIN_PASSWORD: ${{ secrets.MAGENTO_ADMIN_PASSWORD }}
DONATION_ACCOUNT: ${{ secrets.DONATION_ACCOUNT }}
ADYEN_MERCHANT: ${{ secrets.ADYEN_MERCHANT }}
ADYEN_API_KEY: ${{ secrets.ADYEN_API_KEY }}
ADYEN_CLIENT_KEY: ${{ secrets.ADYEN_CLIENT_KEY }}
DEPLOY_SAMPLEDATA: 1
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
- name: Install Magento
run: docker compose -f .github/docker-compose.yml run --rm web make magento
- name: Start web server in background
run: docker compose -f .github/docker-compose.yml up -d web
- name: Setup permissions
run: docker exec magento2-container make fs
- name: Check install
run: docker exec magento2-container make sys-check
- name: Install plugin
run: docker exec -u www-data magento2-container make plugin
- run: docker exec magento2-container /etc/init.d/cron stop
- name: Configure GraphQL requirements
run: docker exec magento2-container make setup-graphql
- name: Run GraphQL tests
run: docker exec magento2-container make graphql