Skip to content

build: add ability to load from .env #73

build: add ability to load from .env

build: add ability to load from .env #73

Workflow file for this run

name: API CI
on:
push:
branches:
- "main"
- "master"
- "ci"
workflow_dispatch:
# defaults:
# run:
# working-directory: api
jobs:
ci:
runs-on: ubuntu-latest
# Service containers to run with `container-job`
services:
postgres:
# Docker Hub image
image: postgres
env:
POSTGRES_PASSWORD: somethingsecretfortesting
POSTGRES_USER: gram-test
ports:
- 5433:5432
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: "Clean install"
shell: bash
run: npm ci
- name: "Build"
shell: bash
run: npm run build
- name: "Test"
shell: bash
run: npm test
- name: "Lint"
shell: bash
run: npm run lint
# - name: "Snyk"
# shell: bash
# run: npm run snyk