Skip to content

Instantly share code, notes, and snippets.

@abenevaut
Last active March 9, 2024 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abenevaut/7a78101ea6ab76c3a003df7102c5dd82 to your computer and use it in GitHub Desktop.
Save abenevaut/7a78101ea6ab76c3a003df7102c5dd82 to your computer and use it in GitHub Desktop.
Standard circleci workflow
  • Standard circleci workflow
version: 2
jobs:
test:
docker:
- image: abenevaut/vapor-ci:node_16-php_81
steps:
- checkout
- run: composer validate --strict
- restore_cache:
keys:
- dependencies-{{ checksum "composer.json" }}-{{ checksum "package-lock.json" }}
- dependencies- # fallback
- run: |
composer install
npm install
- save_cache:
paths:
- ./vendor
- ~/.npm
key: dependencies-{{ checksum "composer.json" }}-{{ checksum "package-lock.json" }}
- run: |
cp .env.example .env
php artisan key:generate
npm run prod
vendor/bin/paratest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment