Skip to content

Commit

Permalink
add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joubertredrat committed Apr 10, 2024
1 parent 6a68cdb commit e9470c4
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tests

on:
push:
paths-ignore:
- '*.md'

jobs:
tests:
strategy:
fail-fast: false
matrix:
php:
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
matomo-target:
- minimum_required_matomo
- maximum_supported_matomo
node:
- 12.x
- 20.x
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
contents: read
name: >-
Tests w/ PHP ${{ matrix.php }}, Node.js ${{ matrix.node }}, Target Matomo
'${{ matrix.matomo-target }}'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
persist-credentials: false
- name: Run plugin tests
uses: matomo-org/github-action-tests@main
with:
plugin-name: ProtectTrackID
test-type: PluginTests
php-version: '${{ matrix.php }}'
matomo-test-branch: '${{ matrix.matomo-target }}'
node-version: '${{ matrix.node }}'
mysql-service: true

0 comments on commit e9470c4

Please sign in to comment.