Skip to content

Commit

Permalink
CI Improvements (#2606)
Browse files Browse the repository at this point in the history
* Two more github action updates

* latest sshagent

* lets try this version

* .github/workflows/3x.yml

* fixing ssh2

* set CI concurrency
  • Loading branch information
stovak authored Jun 25, 2024
1 parent fe2d6a6 commit e34659e
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/3x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
required: true
default: "0"

# Cancel previous runs of this same branch/PR/etc.
concurrency:
group: 'ci-${{ github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
# Checkout in separate job because docker image is alpine based and checkout action doesn't work.
checkout_build:
Expand Down Expand Up @@ -74,7 +79,7 @@ jobs:
needs: [ checkout_build ]
steps:
- name: Install SSH key
uses: webfactory/ssh-agent@v0.5.3
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.TERMINUS_SITE_OWNER_SSH_PRIVATE_KEY }}
- run: brew update && brew upgrade icu4c
Expand All @@ -84,7 +89,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: gd, mbstring, zip, ssh2-1.3.1, pcov
extensions: gd, mbstring, zip, ssh2-1.4.1, pcov
coverage: pcov
ini-values: error_reporting=E_ALL
- name: Download repo content from artifact
Expand All @@ -109,13 +114,6 @@ jobs:
- name: Functional Tests (arbitrary group)
if: ${{ github.event.inputs.functional_tests_group != '' && github.event.inputs.functional_tests_group != 'all' }}
run: composer test:group -- ${{ github.event.inputs.functional_tests_group }}
- name: Coverage Report
run: composer coverage
- name: Save coverage as artifact
uses: actions/upload-artifact@v3
with:
name: CoverageReport
path: docs/TestCoverage.md
- name: Finish sesssion
if: ${{ always() && github.event.inputs.tmate_enabled == 1 }}
run: |
Expand Down

0 comments on commit e34659e

Please sign in to comment.