Skip to content

Commit

Permalink
ci: upgrade jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jul 29, 2024
1 parent b0662ae commit efc9ae4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
php: [ 8.2, 8.3 ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache Composer dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
Expand All @@ -27,7 +27,7 @@ jobs:
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./

- name: Upload build archive for test runners
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: /tmp/github-actions
Expand All @@ -43,7 +43,7 @@ jobs:
coverage: ${{ steps.store-coverage.outputs.coverage_text }}

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build-artifact
path: /tmp/github-actions
Expand All @@ -60,10 +60,9 @@ jobs:
php_extensions: xdebug
coverage_text: _coverage/coverage.txt
coverage_clover: _coverage/clover.xml
configuration: phpunit.xml

- name: Store coverage data
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: code-coverage
path: _coverage
Expand All @@ -73,9 +72,9 @@ jobs:
needs: [ phpunit ]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: code-coverage
path: _coverage
Expand All @@ -94,7 +93,7 @@ jobs:
php: [ 8.2, 8.3 ]

steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: build-artifact
path: /tmp/github-actions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Gt\Config\Config;
use Gt\Config\ConfigSection;

class ConfigConfigTest extends ConfigTestCase {
class ConfigTest extends ConfigTestCase {
public function testNotPresentByDefault() {
$config = new Config();
$this->assertNull($config->get(uniqid()));
Expand Down

0 comments on commit efc9ae4

Please sign in to comment.