docs: created components to swagger #43
Workflow file for this run
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 - Test, Lint and Coveralls Coverage | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x] | |
services: | |
postgres: | |
image: bitnami/postgresql | |
ports: | |
- 5432 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Generate .env file | |
run: | | |
touch .env | |
echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> .env | |
echo "MAIL_LOGIN=${{ secrets.MAIL_LOGIN }}" >> .env | |
echo "MAIL_PASSWORD=${{ secrets.MAIL_PASSWORD }}" >> .env | |
echo "POSTGRESQL_USERNAME=${{ secrets.POSTGRESQL_USERNAME }}" >> .env | |
echo "POSTGRESQL_PASSWORD=${{ secrets.POSTGRESQL_PASSWORD }}" >> .env | |
echo "POSTGRESQL_DATABASE=${{ secrets.POSTGRESQL_DATABASE }}" >> .env | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Fixing non-standard Scripts | |
run: npm run lint | |
- name: Generate Jest Coverage | |
run: npm run test:ci | |
- name: Run Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |