Skip to content

feat: test

feat: test #74

Workflow file for this run

name: "Test project"
on:
push
jobs:
test-project:
environment: test
runs-on: ubuntu-latest
env:
PORT: ${{ vars.PORT }}
TYPEORM_HOST: ${{ vars.TYPEORM_HOST }}
TYPEORM_CONNECTION: ${{ vars.TYPEORM_CONNECTION }}
TYPEORM_USERNAME: ${{ vars.TYPEORM_USERNAME }}
TYPEORM_PASSWORD: ${{ vars.TYPEORM_PASSWORD }}
TYPEORM_DATABASE: ${{ vars.TYPEORM_DATABASE }}
TYPEORM_PORT: ${{ vars.TYPEORM_PORT }}
JWT_SECRET: ${{ vars.JWT_SECRET }}
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'
- name: Install NX globally
run: npm i -g nx
- name: 'Install dependencies'
run: npm i
- name: Start tests
run: nx test api