Skip to content

Commit

Permalink
no-task Add Continuous Integration workflow and update .gitignore file.
Browse files Browse the repository at this point in the history
  • Loading branch information
nxsschoenfeld committed Aug 9, 2023
1 parent fea6ebc commit c65c50d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 6 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Continuous Integration

on: [push]

jobs:
analyse:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Validate composer.json
run: composer validate

- name: Install dependencies
run: composer install

- name: Run tests
run: composer test

- name: Check coding standards
run: composer cs-check

- name: Check static analysis (PHPStan)
run: composer stan

- name: Check messdetector
run: composer md-check
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ nbproject/
.buildpath/
.settings/
*.sublime-*
src/Generated/*
src/Orm/*

# OS
.DS_Store
Expand Down Expand Up @@ -36,3 +38,5 @@ tests/**/_generated/
tests/_output/*
!tests/_output/.gitkeep
tests/app/*
src/Orm
src/Generated
6 changes: 0 additions & 6 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit c65c50d

Please sign in to comment.