Add docker-compose tasks image and improve dockerfile for prisma #2
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
name: Formatting, Linting, Types, Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn --prefer-offline | |
- name: Check the types | |
run: yarn type-check | |
- name: Lint | |
run: yarn lint | |
- name: Build | |
run: yarn build | |
- name: Test | |
run: yarn test | |
# call steps to run a deploy at dev|staging environment |