-
-
Notifications
You must be signed in to change notification settings - Fork 295
28 lines (26 loc) · 893 Bytes
/
main.yml
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
name: build
on: [push, workflow_dispatch, pull_request]
env:
COMPOSE_PROJECT_NAME: yii2-queue
COMPOSE_FILE: tests/docker-compose.yml
AWS_SQS_ENABLED: ${{ secrets.AWS_SQS_ENABLED }}
AWS_SQS_URL: ${{ secrets.AWS_SQS_URL }}
AWS_KEY: ${{ secrets.AWS_KEY }}
AWS_SECRET: ${{ secrets.AWS_SECRET }}
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_SQS_FIFO_ENABLED: ${{ secrets.AWS_SQS_FIFO_ENABLED }}
AWS_SQS_FIFO_URL: ${{ secrets.AWS_SQS_FIFO_URL }}
AWS_SQS_FIFO_MESSAGE_GROUP_ID: ${{ secrets.AWS_SQS_FIFO_MESSAGE_GROUP_ID }}
jobs:
phpunit:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: PHP Unit tests for PHP ${{ matrix.php }}
run: make test v=${{ matrix.php }}