mirror of
https://github.com/ivuorinen/branch-usage-checker.git
synced 2026-03-19 14:01:34 +00:00
chore: update workflows
This commit is contained in:
4
.github/workflows/dependency-review.yml
vendored
4
.github/workflows/dependency-review.yml
vendored
@@ -18,6 +18,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout Repository"
|
- name: "Checkout Repository"
|
||||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
- name: "Dependency Review"
|
- name: "Dependency Review"
|
||||||
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4
|
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2
|
||||||
|
|||||||
12
.github/workflows/test-and-build.yml
vendored
12
.github/workflows/test-and-build.yml
vendored
@@ -17,12 +17,12 @@ jobs:
|
|||||||
php: ["8.2"]
|
php: ["8.2"]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2
|
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
ini-values: phar.readonly=0
|
ini-values: phar.readonly=0
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
||||||
|
|
||||||
- name: Install Composer dependencies
|
- name: Install Composer dependencies
|
||||||
uses: ramsey/composer-install@v2
|
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
|
||||||
|
|
||||||
- name: PHPUnit Testing
|
- name: PHPUnit Testing
|
||||||
run: vendor/bin/pest --coverage
|
run: vendor/bin/pest --coverage
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
- name: Ensure the PHAR works
|
- name: Ensure the PHAR works
|
||||||
run: builds/branch-usage-checker --version
|
run: builds/branch-usage-checker --version
|
||||||
|
|
||||||
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||||
name: Upload the PHAR artifact
|
name: Upload the PHAR artifact
|
||||||
with:
|
with:
|
||||||
name: branch-usage-checker
|
name: branch-usage-checker
|
||||||
@@ -64,13 +64,13 @@ jobs:
|
|||||||
- "build-phar"
|
- "build-phar"
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
|
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
|
||||||
with:
|
with:
|
||||||
name: branch-usage-checker
|
name: branch-usage-checker
|
||||||
path: builds/
|
path: builds/
|
||||||
|
|
||||||
- name: Upload box.phar
|
- name: Upload box.phar
|
||||||
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2
|
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
files: builds/branch-usage-checker
|
files: builds/branch-usage-checker
|
||||||
|
|||||||
Reference in New Issue
Block a user