updated ci #5
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: NestJS CI | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
services: | ||
image: postges:latest | ||
ports: | ||
- 5432:5432 | ||
Check failure on line 15 in .github/workflows/first-action.yml GitHub Actions / NestJS CIInvalid workflow file
|
||
env: | ||
POSTGRES_USER: my_database | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run tests | ||
run: npm test |