Skip to content

build(deps-dev): bump tar-fs from 2.1.1 to 2.1.4 #9

build(deps-dev): bump tar-fs from 2.1.1 to 2.1.4

build(deps-dev): bump tar-fs from 2.1.1 to 2.1.4 #9

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main", "aula_06" ]
pull_request:
branches: [ "main", "aula_06" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
services:
db:
image: postgres:16-alpine
env:
POSTGRES_USER: ${{ secrets.DB_USERNAME }}
POSTGRES_PASSWORD: ${{ secrets.DB_PASSWORD }}
POSTGRES_DB: ${{ secrets.DB_NAME }}
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Configurar ambiente
uses: actions/setup-node@v1
with:
node-version: "20.x"
- name: Instalar as dependências
run: npm install
- name: Set environment variables for tests
run: |
echo "DB_NAME=${{ secrets.DB_NAME }}" >> $GITHUB_ENV
echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> $GITHUB_ENV
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> $GITHUB_ENV
echo "DB_DIALECT=${{ secrets.DB_DIALECT }}" >> $GITHUB_ENV
echo "DB_HOST=${{ secrets.DB_HOST }}" >> $GITHUB_ENV
echo "DB_PORT=${{ secrets.DB_PORT }}" >> $GITHUB_ENV
- name: Run Unit Tests
run: npm run test
- name: Run Integration Tests
run: npm run test:integration
- name: Run System Tests
run: npm run test:system
# - name: SonarCloud Scan
# uses: SonarSource/sonarcloud-github-action@master
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# - name: Carregar os resultados anteriores
# uses: actions/checkout@v3
# if: always()
# continue-on-error: true
# with:
# ref: gh-pages
# path: gh-pages
# - name: Gerar relatório
# uses: simple-elf/[email protected]
# if: always()
# with:
# gh_pages: gh-pages
# allure_history: ./allure-history
# allure_results: ./allure-results
# - name: Publicar relatório
# uses: peaceiris/actions-gh-pages@v3
# if: always()
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_branch: gh-pages
# publish_dir: allure-history