From 08fd7f133ec96310171a13759df2c74916b2777d Mon Sep 17 00:00:00 2001 From: blue32a Date: Mon, 3 Jul 2023 18:50:06 +0900 Subject: [PATCH] ci: refine --- .github/workflows/test.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b8db909..dc4704c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: php-version: ${{ matrix.php-version }} - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Using Composer version 2 run: sudo composer self-update --2 @@ -29,14 +29,13 @@ jobs: - 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 Composer Directory - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }} - restore-keys: php-${{ matrix.php-version }}-composer + restore-keys: php-${{ matrix.php-version }}-composer- - name: Install dependencies run: composer install --prefer-dist --no-progress --no-suggest @@ -52,21 +51,20 @@ jobs: php-version: '8.2' - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Using Composer version 2 run: sudo composer self-update --2 - 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 Composer Directory - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} - key: php-8.2-composer-${{ hashFiles('composer.lock') }} - restore-keys: php-8.2-composer + key: php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }} + restore-keys: php-${{ matrix.php-version }}-composer- - name: Install dependencies run: composer install --prefer-dist --no-progress --no-suggest