fix: update knex migrations #121
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: ci | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
eslint-test-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
- name: CI, Linter, Test with Coverage and Build | |
env: | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
TESTING_NODE_ENV: ${{ secrets.TESTING_NODE_ENV }} | |
TESTING_DB_HOST: ${{ secrets.TESTING_DB_HOST }} | |
TESTING_DB_PORT_NUMBER: ${{ secrets.TESTING_DB_PORT_NUMBER }} | |
TESTING_DB_NAME: ${{ secrets.TESTING_DB_NAME }} | |
TESTING_DB_USERNAME: ${{ secrets.TESTING_DB_USERNAME }} | |
TESTING_DB_PASSWORD: ${{ secrets.TESTING_DB_PASSWORD }} | |
IMAGE_PREFIX: ${{ secrets.IMAGE_PREFIX }} | |
run: | | |
npm ci --legacy-peer-deps | |
npm run lint | |
npm run test:cov | |
npm run build |