From 68e372855cab3e0a8936b5e5bb7d2b02c0b4cbe3 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 18 Aug 2024 11:28:33 +0300 Subject: [PATCH] Add codecov --- .editorconfig | 4 ++++ .github/workflows/ci.yml | 8 +++++++- .gitignore | 1 + .phpunit.xml | 2 +- README.md | 2 +- 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index 8974e92..5eb700b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,7 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 580c8b5..f692912 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['8.1', '8.2'] + php: ['8.1', '8.2', '8.3'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -23,3 +23,9 @@ jobs: run: composer test - name: Run phpstan run: composer run phpstan + - name: Upload coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_ORG_TOKEN }} + files: ./SteamKit2/Tests/Coverage/lcov.info + fail_ci_if_error: false diff --git a/.gitignore b/.gitignore index d1502b0..84a119a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vendor/ composer.lock +coverage.xml diff --git a/.phpunit.xml b/.phpunit.xml index 9e7117c..d01aea6 100644 --- a/.phpunit.xml +++ b/.phpunit.xml @@ -2,7 +2,7 @@ - + diff --git a/README.md b/README.md index d14d209..fd1af95 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# SteamID.php [![Packagist](https://img.shields.io/packagist/dt/xpaw/steamid.svg)](https://packagist.org/packages/xpaw/steamid) +# SteamID.php [![Packagist](https://img.shields.io/packagist/dt/xpaw/steamid.svg)](https://packagist.org/packages/xpaw/steamid) [![Codecov](https://codecov.io/gh/xPaw/SteamID.php/graph/badge.svg?token=MykhdiNWe2)](https://codecov.io/gh/xPaw/SteamID.php) This 64bit structure is used for identifying various objects on the Steam network. This library provides an easy way to work with SteamIDs and makes