46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
on: push
|
|
name: Tests
|
|
jobs:
|
|
node:
|
|
strategy:
|
|
matrix:
|
|
node: ["12", "14", "16", "18", "20"]
|
|
name: Node.js
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{matrix.node}}
|
|
- run: npm install
|
|
- run: npm test
|
|
php:
|
|
strategy:
|
|
matrix:
|
|
# https://www.php.net/supported-versions.php
|
|
php: ["8.0", "8.1", "8.2"]
|
|
name: PHP
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{matrix.php}}
|
|
tools: phpunit, composer
|
|
- run: composer install --no-interaction
|
|
- run: ./vendor/bin/phpunit --migrate-configuration
|
|
ruby:
|
|
strategy:
|
|
matrix:
|
|
ruby: ["2.6", "2.7", "3.0", "3.1"]
|
|
name: Ruby
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true
|
|
- run: bundle install
|
|
- run: bundle exec rake
|