Merge pull request #5 from werkraum-media/update-github-action

Update GitHub checkout action
This commit is contained in:
Daniel Siepmann 2022-10-24 10:18:19 +02:00 committed by GitHub
commit c944a3c78f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ jobs:
check-composer: check-composer:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Validate composer.json - name: Validate composer.json
run: composer validate run: composer validate
@ -18,7 +18,7 @@ jobs:
- 7.4 - 7.4
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Install PHP - name: Install PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [check-composer] needs: [check-composer]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install PHP - name: Install PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
@ -42,18 +42,6 @@ jobs:
- name: Keep composer at 1.x - name: Keep composer at 1.x
run: sudo composer selfupdate --1 run: sudo composer selfupdate --1
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies - name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest --no-plugins run: composer install --prefer-dist --no-progress --no-suggest --no-plugins
@ -64,7 +52,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [check-composer] needs: [check-composer]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install PHP - name: Install PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
@ -77,18 +65,6 @@ jobs:
- name: Keep composer at 1.x - name: Keep composer at 1.x
run: sudo composer selfupdate --1 run: sudo composer selfupdate --1
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies - name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest run: composer install --prefer-dist --no-progress --no-suggest
@ -107,7 +83,7 @@ jobs:
- check-dependencies - check-dependencies
- xml-linting - xml-linting
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install PHP - name: Install PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
@ -117,18 +93,6 @@ jobs:
- name: Keep composer at 1.x - name: Keep composer at 1.x
run: sudo composer selfupdate --1 run: sudo composer selfupdate --1
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies - name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest run: composer install --prefer-dist --no-progress --no-suggest
@ -146,7 +110,7 @@ jobs:
- 7.3 - 7.3
- 7.4 - 7.4
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install PHP - name: Install PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
@ -156,18 +120,6 @@ jobs:
- name: Keep composer at 1.x - name: Keep composer at 1.x
run: sudo composer selfupdate --1 run: sudo composer selfupdate --1
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies - name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest run: composer install --prefer-dist --no-progress --no-suggest