xref: /plugin/dw2pdf/vendor/mpdf/qrcode/.github/workflows/tests.yml (revision fb347f35dc824cf59875d883dbf86d311f54de06)
1*fb347f35SAndreas Gohr# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2*fb347f35SAndreas Gohr
3*fb347f35SAndreas Gohrname: "CI"
4*fb347f35SAndreas Gohr
5*fb347f35SAndreas Gohron:
6*fb347f35SAndreas Gohr  pull_request:
7*fb347f35SAndreas Gohr  push:
8*fb347f35SAndreas Gohr    branches:
9*fb347f35SAndreas Gohr      - "master"
10*fb347f35SAndreas Gohr      - "development"
11*fb347f35SAndreas Gohr      - "test"
12*fb347f35SAndreas Gohr
13*fb347f35SAndreas Gohrjobs:
14*fb347f35SAndreas Gohr
15*fb347f35SAndreas Gohr  tests:
16*fb347f35SAndreas Gohr
17*fb347f35SAndreas Gohr    name: "Tests"
18*fb347f35SAndreas Gohr
19*fb347f35SAndreas Gohr    runs-on: ${{ matrix.operating-system }}
20*fb347f35SAndreas Gohr
21*fb347f35SAndreas Gohr    strategy:
22*fb347f35SAndreas Gohr      fail-fast: false
23*fb347f35SAndreas Gohr      matrix:
24*fb347f35SAndreas Gohr        php-version:
25*fb347f35SAndreas Gohr          - "5.6"
26*fb347f35SAndreas Gohr          - "7.0"
27*fb347f35SAndreas Gohr          - "7.1"
28*fb347f35SAndreas Gohr          - "7.2"
29*fb347f35SAndreas Gohr          - "7.3"
30*fb347f35SAndreas Gohr          - "7.4"
31*fb347f35SAndreas Gohr          - "8.0"
32*fb347f35SAndreas Gohr          - "8.1"
33*fb347f35SAndreas Gohr        operating-system: [ubuntu-latest, windows-latest]
34*fb347f35SAndreas Gohr
35*fb347f35SAndreas Gohr    steps:
36*fb347f35SAndreas Gohr      - name: "Checkout"
37*fb347f35SAndreas Gohr        uses: "actions/checkout@v2"
38*fb347f35SAndreas Gohr
39*fb347f35SAndreas Gohr      - name: "Install PHP"
40*fb347f35SAndreas Gohr        uses: "shivammathur/setup-php@v2"
41*fb347f35SAndreas Gohr        with:
42*fb347f35SAndreas Gohr          coverage: "none"
43*fb347f35SAndreas Gohr          php-version: "${{ matrix.php-version }}"
44*fb347f35SAndreas Gohr          extensions: "mbstring, gd, bcmath, bz2"
45*fb347f35SAndreas Gohr          tools: composer:v2
46*fb347f35SAndreas Gohr          ini-values: error_reporting=-1
47*fb347f35SAndreas Gohr
48*fb347f35SAndreas Gohr      - name: "Install dependencies"
49*fb347f35SAndreas Gohr        run: "composer install --no-interaction --no-progress"
50*fb347f35SAndreas Gohr
51*fb347f35SAndreas Gohr      - name: "Tests"
52*fb347f35SAndreas Gohr        run: composer test
53