Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update actions workflows #625

Merged
merged 2 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -37,7 +37,7 @@ jobs:
coverage: none

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.lock') }}
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Run Rector
run: ./vendor/bin/rector process

- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "refactor: code quality assurance"
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
Expand All @@ -69,7 +69,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -82,7 +82,7 @@ jobs:
coverage: none

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.lock') }}
Expand All @@ -96,7 +96,7 @@ jobs:
- name: Run Laravel Pint
run: ./vendor/bin/pint

- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: resolve style guide violations"
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
Expand All @@ -114,7 +114,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -124,7 +124,7 @@ jobs:
coverage: none

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.lock') }}
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Expand All @@ -182,7 +182,7 @@ jobs:
coverage: pcov

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.lock') }}
Expand All @@ -192,7 +192,7 @@ jobs:

- name: Restore Build Output
id: restore_build_output
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: public/build
# Notice that the cache key include all the files that may affect the
Expand All @@ -212,7 +212,7 @@ jobs:
# (see `steps.restore_build_output.outputs.cache-hit != 'true'` condition)
- name: Cache pnpm dependencies
if: steps.restore_build_output.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
node_modules
Expand All @@ -235,7 +235,7 @@ jobs:
run: pnpm build

- name: Cache Build Output
uses: actions/cache@v3
uses: actions/cache@v4
if: steps.restore_build_output.outputs.cache-hit != 'true'
with:
path: public/build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
node-version: 20

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
with:
node-version: 20

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
with:
node-version: 20

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Run eslint
run: pnpm run lint

- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: resolve linting violations"
branch: ${{ github.head_ref }}
Expand All @@ -56,7 +56,7 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -104,7 +104,7 @@ jobs:
- name: Run prettier
run: pnpm run prettier --write 'resources/**/*.{css,js,vue}'

- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: resolve style guide violations"
branch: ${{ github.head_ref }}
Expand All @@ -117,7 +117,7 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -135,7 +135,7 @@ jobs:
run: |
pnpm add -g rustywind
rustywind --write resources/views
- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: resolve style guide violations"
branch: ${{ github.head_ref }}
Expand All @@ -149,7 +149,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -163,7 +163,7 @@ jobs:
svgo-config: .svgo.js

- name: Commit optimizations
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
if: ${{steps.svgo.outputs.DID_OPTIMIZE}}
with:
commit_message: Optimize ${{steps.svgo.outputs.OPTIMIZED_COUNT}} SVG(s)
Expand All @@ -178,7 +178,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -200,7 +200,7 @@ jobs:
coverage: none

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.lock') }}
Expand All @@ -210,7 +210,7 @@ jobs:

- name: Restore Build Output
id: restore_build_output
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: public/build
# @see same step `ci.yml` for details
Expand All @@ -220,7 +220,7 @@ jobs:

- name: Cache pnpm dependencies
if: steps.restore_build_output.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
node_modules
Expand All @@ -243,13 +243,13 @@ jobs:
run: pnpm build

- name: Cache Build Output
uses: actions/cache@v3
uses: actions/cache@v4
if: steps.restore_build_output.outputs.cache-hit != 'true'
with:
path: public/build
key: ${{ runner.os }}-build-output-${{ hashFiles('**/pnpm-lock.yml', 'resources/**', 'lang/**') }}

- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: rebuild assets"
branch: ${{ github.head_ref }}
Loading