generated from jphacks/JP_sample
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/kubosaka/switch-camera-assignment
- Loading branch information
Showing
22 changed files
with
976 additions
and
581 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,36 @@ | ||
name: Build and Test | ||
|
||
on: | ||
push | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Set environment variables from .env file1 | ||
run: | | ||
echo "${{ secrets.DB_ENV_FILE }}" > .env | ||
- name: Set environment variables from .env file2 | ||
working-directory: app | ||
run: | | ||
echo "${{ secrets.ENV_FILE }}" > .env | ||
- name: Build Docker compose up | ||
run: docker compose -f compose.dev.yml up --build -d | ||
|
||
- name: npm install | ||
run: docker compose exec app npm install | ||
|
||
- name: npm run build | ||
run: docker compose exec app npm run build | ||
|
||
- name: Build Docker compose down | ||
run: docker compose down |
Oops, something went wrong.