Skip to content

Commit

Permalink
Generating app key for tests
Browse files Browse the repository at this point in the history
Note that eventually we'll have to pass a host of config vars to
effectively test the Laravel instance. That's TBD for later.
  • Loading branch information
sarah-savage committed Oct 19, 2024
1 parent 6400fe8 commit fad434e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/run-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
- name: Install Composer dependencies
run: docker run --rm -v $(pwd):/var/www/html aspirepress/aspirecloud-cli sh -c "composer install"

- name: Create .env file
run: cp .env.example .env

- name: Create App Key
run: docker run --rm -v $(pwd):/var/www/html aspirepress/aspirecloud-cli sh -c "./artisan key:generate"

- name: Run style checks
run: docker run --rm -v $(pwd):/var/www/html aspirepress/aspirecloud-cli sh -c "./vendor/bin/pint --test"

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ list:
init: check-env down clean build network up install-composer reset-database generate-key ## Initial configuration tasks

check-env:
@[ -f .env ] || { echo "No .env file found. Please run: cp .env.sample .env"; exit 1; }
@[ -f .env ] || { echo "No .env file found. Please run: cp .env.example .env"; exit 1; }

build: ## Builds the Docker containers
docker compose build
Expand Down

0 comments on commit fad434e

Please sign in to comment.