Skip to content

Commit

Permalink
ci: clean up workflow files (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi authored Dec 16, 2024
1 parent 49f019c commit 2e69390
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 366 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/coding-conventions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,37 @@ on:

# CSFixer and Rector are temporarily disabled until they have proper PHP 8.4 support
jobs:
# check-style:
# name: Run Style Check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: 8.4
# coverage: none
#
# - name: Install composer dependencies
# uses: ramsey/composer-install@v3
#
# - name: Run php-cs-fixer
# run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --allow-risky=yes --dry-run -vvv
# env:
# PHP_CS_FIXER_IGNORE_ENV: true
check-style:
name: Run style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: 8.4
# coverage: none

# - name: Install composer dependencies
# uses: ramsey/composer-install@v3

# - name: Run php-cs-fixer
# run: vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --allow-risky=yes --dry-run -vvv
# env:
# PHP_CS_FIXER_IGNORE_ENV: true

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Run eslint
- name: Run ESLint
run: bun run lint

phpstan:
name: "Run Static Analysis: PHPStan"
phpstan:
name: "Run static analysis: PHPStan"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -54,7 +54,7 @@ jobs:
run: vendor/bin/phpstan --error-format=github

# rector:
# name: "Run Static Analysis: Rector"
# name: "Run static analysis: Rector"
# runs-on: ubuntu-latest
#
# steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:
contents: write
id-token: write

name: Changelog and release
name: Create a GitHub release

jobs:
release:
Expand All @@ -18,18 +18,18 @@ jobs:
with:
fetch-depth: 0

- name: Generate changelog
uses: orhun/git-cliff-action@v4
env:
OUTPUT: CHANGELOG.md
GITHUB_REPO: ${{ github.repository }}

- name: Update changelog
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: 'CHANGELOG.md'
commit_message: "chore: update changelog"
branch: main
# - name: Generate changelog
# uses: orhun/git-cliff-action@v4
# env:
# OUTPUT: CHANGELOG.md
# GITHUB_REPO: ${{ github.repository }}

# - name: Update changelog
# uses: stefanzweifel/git-auto-commit-action@v5
# with:
# file_pattern: 'CHANGELOG.md'
# commit_message: "chore: update changelog"
# branch: main

- name: Generate release notes
uses: orhun/git-cliff-action@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- ubuntu-latest
- windows-latest

name: "Run Tests: ${{ matrix.os }}"
name: "Run tests: ${{ matrix.os }}"

steps:
- name: Checkout code
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- prefer-stable
- prefer-lowest

name: "Run Tests: PHP ${{ matrix.php }} - ${{ matrix.database }} - ${{ matrix.stability }} - ${{ matrix.os }}"
name: "Run tests: PHP ${{ matrix.php }} - ${{ matrix.database }} - ${{ matrix.stability }} - ${{ matrix.os }}"

steps:
- name: Checkout code
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Set database config - ${{ matrix.database }}
run: php -r "file_exists('tests/Fixtures/Config/database.config.php') || copy('tests/Fixtures/Config/database.${{ matrix.database }}.php', 'tests/Fixtures/Config/database.config.php');"

- name: List Discovered Locations
- name: List discovered locations
run: php ./tempest discovery:status

- name: Execute tests
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/isolated-tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Isolated Tests
name: Isolated tests

on:
pull_request:
Expand All @@ -8,10 +8,10 @@ on:

jobs:
get_packages:
name: Get Packages
name: Get packages
runs-on: ubuntu-latest
steps:
- name: Set Up PHP
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
Expand All @@ -21,11 +21,11 @@ jobs:
with:
fetch-depth: 2

- name: Get Packages
- name: Get packages
id: get_json
run: echo "json=$(bin/get-packages)" >> $GITHUB_OUTPUT

- name: Output Packages
- name: Output packages
run: echo "${{ steps.get_json.outputs.json }}"
outputs:
matrix: ${{ steps.get_json.outputs.json }}
Expand All @@ -44,9 +44,7 @@ jobs:
stability:
- prefer-stable
- prefer-lowest

name: "Run Tests: ${{ matrix.package.name }} - PHP ${{ matrix.php }} - ${{ matrix.stability }}"

name: "Run tests: ${{ matrix.package.name }} - PHP ${{ matrix.php }} - ${{ matrix.stability }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -73,4 +71,4 @@ jobs:
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: phpunit -c "src/Tempest/${{ matrix.package.basename }}/phpunit.xml"
run: phpunit -c "src/Tempest/${{ matrix.package.basename }}/phpunit.xml"
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
fetch-depth: 0

- name: Setup bun
- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
Expand Down
154 changes: 0 additions & 154 deletions .github/workflows/quality-assurance.yml

This file was deleted.

Loading

0 comments on commit 2e69390

Please sign in to comment.