Skip to content

Commit

Permalink
fix: use Github Actions instead of CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
babeuloula committed Dec 2, 2023
1 parent 9d4d529 commit b6809da
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 138 deletions.
138 changes: 0 additions & 138 deletions .circleci/config.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Code quality

on:
push:
branches:
- '**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
composer:
runs-on: ubuntu-latest

strategy:
matrix:
version: [ 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3 ]


steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cache composer dependencies
uses: actions/cache@v3
with:
key: composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}-${{ matrix.version }}
restore-keys: composer-
path: vendor

- name: Install composer dependencies
uses: php-actions/composer@v6
with:
interaction: no
dev: yes
php_version: ${{ matrix.version }}
version: 2
args: --optimize-autoloader --no-scripts --ignore-platform-reqs

lint:
runs-on: ubuntu-latest

needs: composer

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cache composer dependencies
uses: actions/cache@v3
with:
key: composer-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}-${{ matrix.version }}
restore-keys: composer-
path: vendor

- name: Install PHP with extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.version }}

- name: PHP Code Sniffer
run: make phpcs

0 comments on commit b6809da

Please sign in to comment.