Remove unnecessary packages #147
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: Starter CI | |
on: | |
push: | |
branches: [dev, main] | |
pull_request: | |
branches: [dev, main] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
node-version: [20.x] | |
platform: [ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_DB: starter_test | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: secret | |
ports: | |
- 5432:5432 | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Building source code | |
run: yarn build | |
- name: Running tests | |
run: yarn test | |
env: | |
NODE_ENV: test | |
DB_CLIENT: pg | |
DB_PORT: 5432 | |
DB_HOST: 127.0.0.1 | |
DB_USER: postgres | |
DB_PASSWORD: secret | |
TEST_DB_NAME: starter_test | |
TEST_APP_PORT: 8888 | |
ACCESS_TOKEN_SECRET_KEY: 'somerandoma' | |
REFRESH_TOKEN_SECRET_KEY: 'somerandomr' |