Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.4, 8.1]
steps:
- uses: actions/checkout@v3
- name: Start MySQL
run: sudo /etc/init.d/mysql start
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Install dependencies
run: composer install --prefer-dist --no-scripts --no-suggest --no-interaction
- name: Ignore PHPCS warnings
run: ./vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
- name: Install drupal
run: ./vendor/bin/drush site:install testing --root sut --db-url mysql://root:root@localhost/drupal --yes
- name: Run code sniffer
run: ./vendor/bin/phpcs --standard=PSR2 --ignore='sut,vendor' .
- name: Run unit tests
run: ./vendor/bin/phpunit
File renamed without changes.
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.