From 354067b319d587bd0a178ddc0ed1e79de5460381 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 1 Feb 2026 11:20:30 +0200 Subject: Add CI workflows for coverage and linting; update README to remove Codecov badge --- .forgejo/workflows/coverage.yml | 33 +++++++++++++++++++++++++++++++++ .forgejo/workflows/lint.yml | 25 +++++++++++++++++++++++++ .github/workflows/coverage.yml | 31 ------------------------------- .github/workflows/lint.yml | 25 ------------------------- README.md | 2 -- 5 files changed, 58 insertions(+), 58 deletions(-) create mode 100644 .forgejo/workflows/coverage.yml create mode 100644 .forgejo/workflows/lint.yml delete mode 100644 .github/workflows/coverage.yml delete mode 100644 .github/workflows/lint.yml diff --git a/.forgejo/workflows/coverage.yml b/.forgejo/workflows/coverage.yml new file mode 100644 index 0000000..cc464c8 --- /dev/null +++ b/.forgejo/workflows/coverage.yml @@ -0,0 +1,33 @@ +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +name: Coverage +jobs: + coverage: + name: Coverage + runs-on: docker + container: + image: node:20 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up php + uses: shivammathur/setup-php@v2 + with: + php-version: "8.3" + coverage: xdebug + + - name: Set-up Composer + uses: php-actions/composer@v6 + + - name: Run tests and collect coverage + run: ./vendor/bin/phpunit tests --coverage-clover coverage.xml tests + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml new file mode 100644 index 0000000..fad6051 --- /dev/null +++ b/.forgejo/workflows/lint.yml @@ -0,0 +1,25 @@ +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +name: Lint +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up php 8.3 + uses: shivammathur/setup-php@v2 + with: + php-version: "8.3" + + - name: Set-up Composer + uses: php-actions/composer@v6 + + - name: Run phpstan + run: ./vendor/bin/phpstan diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index a55fa9b..0000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,31 +0,0 @@ -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] -name: Coverage -jobs: - coverage: - name: Coverage - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up php 8.3 - uses: shivammathur/setup-php@v2 - with: - php-version: "8.3" - coverage: xdebug - - - name: Set-up Composer - uses: php-actions/composer@v6 - - - name: Run tests and collect coverage - run: ./vendor/bin/phpunit tests --coverage-clover coverage.xml tests - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index fad6051..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,25 +0,0 @@ -on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] -name: Lint -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up php 8.3 - uses: shivammathur/setup-php@v2 - with: - php-version: "8.3" - - - name: Set-up Composer - uses: php-actions/composer@v6 - - - name: Run phpstan - run: ./vendor/bin/phpstan diff --git a/README.md b/README.md index dcefc94..8b888a2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # Loggr -[![codecov](https://codecov.io/gh/askonomm/loggr/graph/badge.svg?token=lQDNAnAWKn)](https://codecov.io/gh/askonomm/loggr) - An extendable logging utility class brought to you by the frustration of every logging class always having its own unique format, which makes using log viewing tools difficult. Instead of having its own yet-another-format that no tool supports, Loggr attempts to match many already existing formats, allowing you to use whichever you prefer most. -- cgit v1.2.3