This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
702a06b
commit 9e9c5a3
Showing
1 changed file
with
6 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,27 +18,10 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
- uses: devcontainers/[email protected] | ||
name: Pre-build image and run make ci-build in dev container | ||
with: | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress | ||
|
||
- name: Run linter | ||
run: composer lint -- --dry-run --diff | ||
|
||
- name: Run test suite | ||
run: composer test | ||
imageName: ghcr.io/opencodeco/testcontainers-php-devcontainer | ||
cacheFrom: ghcr.io/opencodeco/testcontainers-php-devcontainer | ||
push: always | ||
runCmd: composer test |