Merge pull request #227 from Abhiek187/dependabot/npm_and_yarn/pm2-5.4.1 #422
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: Docker Image CI | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create an env file | |
run: | | |
touch .env | |
echo API_KEY=${{ secrets.API_KEY }} >> .env | |
- name: Build the Docker image | |
run: docker compose -f docker-compose.yml up -d --build server | |
- name: Run tests inside the container | |
run: docker run --rm ez-recipes-server npm test |