Skip to content

Commit

Permalink
GitHub Actions: merged all workflows to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Apr 5, 2024
1 parent b12b8ea commit 652ed9d
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 94 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build

on:
push:
branches:
- master
- develop
tags:
- v*

pull_request:

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']

fail-fast: false

name: PHP ${{ matrix.php }} tests
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, mbstring, tokenizer, sqlite3
coverage: none

- run: composer install --no-interaction
- run: vendor/bin/tester tests -s -C
- if: failure()
uses: actions/upload-artifact@v2
with:
name: output
path: tests/**/output

code-checker:
name: Code Standard Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none

- run: composer create-project nette/code-checker temp/code-checker ^3.2 --no-progress
- run: php tools/code-checker.php

phpstan:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']

fail-fast: false

name: PHP ${{ matrix.php }} PHPStan
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none

- run: composer install --no-interaction
- run: composer phpstan -- --no-progress
25 changes: 0 additions & 25 deletions .github/workflows/coding-style.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/static-analysis.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/tests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Lean Mapper
===========

[![Tests Status](https://github.com/Tharos/LeanMapper/workflows/Tests/badge.svg)](https://github.com/Tharos/LeanMapper/actions)
[![Build Status](https://github.com/Tharos/LeanMapper/workflows/Build/badge.svg)](https://github.com/Tharos/LeanMapper/actions)

Lean Mapper is a tiny ORM based on powerful [Dibi database abstraction library](http://dibiphp.com) for PHP.

Expand Down

0 comments on commit 652ed9d

Please sign in to comment.