ワークフロー修正 #15
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
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 file | |
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 run build | |
run: docker compose exec app npm run build | |
- name: Build Docker compose down | |
run: docker-compose down |