Skip to content

Commit c6717ac

Browse files
authored
Merge pull request #6 from aik099/github-actions-composer-feat
Improve GitHub Actions workflow for Composer
2 parents 330b745 + 2812d98 commit c6717ac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
pull_request:
66

7+
# Cancels all previous workflow runs for the same branch that have not yet completed.
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
712
defaults:
813
run:
914
shell: bash
@@ -33,8 +38,9 @@ jobs:
3338
tools: composer
3439

3540
- name: Install dependencies
36-
run: |
37-
composer update --prefer-dist --no-interaction
41+
uses: "ramsey/composer-install@v1"
42+
with:
43+
dependency-versions: "highest"
3844

3945
- name: Run tests
4046
run: |

0 commit comments

Comments
 (0)