From 1fffd6e518e7051cd610f60dc5ae4295bfeaf1b1 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Fri, 13 Jan 2023 07:12:48 -0500 Subject: [PATCH 1/2] build: upgrade to non-deprecated actions - run on pull_requests --- .github/workflows/main.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index db597b4..f689fa0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,6 @@ name: main on: + pull_request: push: jobs: tests: @@ -12,13 +13,13 @@ jobs: name: PHP ${{ matrix.php }} - ${{ matrix.stability }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get Composer Cache Directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -36,18 +37,19 @@ jobs: - name: Execute tests run: vendor/bin/phpunit --verbose + code_styles: runs-on: ubuntu-latest name: Code Style steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Get Composer Cache Directory id: composer-cache run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -63,5 +65,4 @@ jobs: run: composer install --no-suggest --prefer-dist -n -o - name: Run style check - id: style_check run: vendor/bin/phpcs From 1a8eaac94e76b331fdfc6a4188a9b4746c7b15b5 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Fri, 13 Jan 2023 07:15:27 -0500 Subject: [PATCH 2/2] build: remove deprecated SET_OUTPUT --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f689fa0..f8746c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ 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 - uses: actions/cache@v3 with: @@ -47,7 +47,7 @@ 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 - uses: actions/cache@v3 with: