Skip to content

Commit

Permalink
update CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
d8vjork committed Feb 2, 2023
1 parent 2fd9511 commit 9dac40b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ jobs:
name: PHPStan

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1

php-version: '8.2'
coverage: none
tools: phpstan

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
Expand All @@ -31,4 +33,4 @@ jobs:
run: composer install --no-interaction --no-suggest

- name: Run analysis
run: vendor/bin/phpstan analyse
run: phpstan analyse
5 changes: 3 additions & 2 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
name: Laravel Pint

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none
tools: laravel/pint

- name: Run analysis
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish

on:
push:
tags:
- '**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get latest release info
id: get-release-info
uses: release-flow/keep-a-changelog-action/get-release-info@v1
with:
release-version: latest

- name: Publish to Github releases
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.get-release-info.outputs.release-notes }}
# prerelease: true
# files: '*.vsix'

0 comments on commit 9dac40b

Please sign in to comment.