Skip to content

Commit

Permalink
Add vite build script to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
irby committed Aug 20, 2024
1 parent e622cc3 commit b354f1f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: install dependencies
- name: install php dependencies
run: composer install
- name: install node dependencies
run: yarn install
- name: copy environment variables to .env
run: cp .env.ci .env
- name: migrate database
run: php artisan migrate --seed
- name: Build website
run: yarn build
- name: run tests
run: php artisan test
12 changes: 9 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- [Conditional: Install Application Dependencies](#conditional-install-application-dependencies)
- [Seeding the Application Database](#seeding-the-application-database)
- [Generating an Application Encryption Key](#generating-an-application-encryption-key)
- [Starting Vite Development Server](#starting-vite-development-server)
- [Build website](#build-website)
- [Troubleshooting](#troubleshooting)
- [Import / Seed Organizations and Events Data](#import--seed-organizations-and-events-data)
- [Interacting with Your Running App](#interacting-with-your-running-app)
Expand Down Expand Up @@ -296,9 +296,15 @@ docker exec -it hackgreenville php artisan key:generate
This command should populate the `APP_KEY` environment variable within your `.env` file.
#### Starting Vite Development Server
#### Build website
Each time the Docker container is restarted, the Vite development server will need to be running in order for the app's stylesheets to be compiled. You can run the Vite development server by running the following command:
This project uses Vite to build the website. This includes building out the website's stylesheets and scripts. You can run the following command to generate the production build:

```bash
docker exec -d hackgreenville yarn build
```

Alternatively, you can start the Vite development server to listen and compile the latest changes:

```bash
docker exec -d hackgreenville yarn dev
Expand Down

0 comments on commit b354f1f

Please sign in to comment.