Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
refactor(ci): Using dev containers
Browse files Browse the repository at this point in the history
  • Loading branch information
leocavalcante authored Mar 16, 2024
1 parent 702a06b commit 9e9c5a3
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e9c5a3

Please sign in to comment.