attempting to fix github actions errors #4
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: End-To-End Test | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.17.0 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.22.3' | |
- name: Run docker-compose | |
uses: hoverkraft-tech/compose-action@v2.0.1 | |
with: | |
compose-file: './docker-compose.yml' | |
- run: npm ci | |
- run: npx prisma generate | |
- run: docker build -t evoclick-dev-api . | |
- run: docker run --name evoclick-dev-api -p 3001:3001 -d evoclick-dev-api | |
- run: make db push | |
- run: make seed | |
- run: npm run build | |
- run: npm start | |
- run: npm run e2e | |