Skip to content

Commit

Permalink
Upgrade checkout actions to v4 (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Sep 20, 2023
1 parent 891f1be commit e6364db
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

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

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
Expand All @@ -22,7 +22,7 @@ jobs:
coverage: none

- name: Cache composer dependencies
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: ~/.cache/composer
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
Expand All @@ -54,7 +54,7 @@ jobs:
tools: cs2pr

- name: Cache composer dependencies
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: ~/.cache/composer
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -70,7 +70,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
Expand All @@ -79,7 +79,7 @@ jobs:
coverage: none

- name: Cache composer dependencies
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: ~/.cache/composer
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -95,7 +95,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

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

- name: Cache composer dependencies
uses: actions/cache@v4
uses: actions/cache@v3
with:
path: ~/.cache/composer
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -127,7 +127,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }} # Otherwise our annotated tag is not fetched and we cannot get correct version

Expand Down

0 comments on commit e6364db

Please sign in to comment.