Skip to content

Commit

Permalink
Merge pull request #10 from dikastes/8-implement-a-ci-pipeline
Browse files Browse the repository at this point in the history
8 implement a ci pipeline
  • Loading branch information
Nathmel123 authored Mar 12, 2024
2 parents 0213aa6 + 8bbb294 commit 73893b1
Show file tree
Hide file tree
Showing 15 changed files with 1,478 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: CI
on:
push:
jobs:
code-quality:
name: "Code quality checks"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install Composer dependencies"
run: "composer ci:install"
- name: "Run command"
run: "composer ci:php:stan"

unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
needs: [ code-quality ]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install Composer dependencies"
run: "composer ci:install"
- name: "Run the tests"
run: "composer ci:tests:unit"

functional-tests:
name: Functional Tests
runs-on: ubuntu-latest
needs: [ code-quality ]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install Composer dependencies"
run: "composer update --no-progress"
- name: "Run the tests"
run: "composer ci:tests:functional"
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
.idea
.idea/
.cache
Build/testing-docker/.env
bin/
public/
typo3temp/
vendor/
composer.lock
Loading

0 comments on commit 73893b1

Please sign in to comment.