-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #762 from liberu-genealogy/sweep/update_installyml…
…_github_workflow_for_te Sweep: Update install.yml GitHub workflow for testing the project
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Install | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Copy environment file | ||
run: cp .env.testing .env | ||
|
||
- name: Install dependencies | ||
run: composer install | ||
|
||
- name: Generate application key | ||
run: php artisan key:generate | ||
|
||
- name: Run database migrations | ||
run: php artisan migrate | ||
|
||
- name: Seed database | ||
run: php artisan db:seed | ||
|
||
- name: Install npm dependencies | ||
run: npm install | ||
|
||
- name: Build frontend assets | ||
run: npm run build | ||
|
||
- name: Run tests | ||
run: php artisan test |