Skip to content

ci(workflows): alterando o campo path dos workflows #8

ci(workflows): alterando o campo path dos workflows

ci(workflows): alterando o campo path dos workflows #8

Workflow file for this run

name: CI - Unit Tests
on:
push:
paths:
- ".github/workflows/test.yml"
- "functions/**"
branches:
- "develop"
- "feature/**"
- "bugfix/**"
- "release/**"
- "hotfix/**"
- "support/**"
- "dependabot/**"
- "!main"
pull_request:
paths:
- ".github/workflows/test.yml"
- "functions/**"
branches:
- "develop"
- "feature/**"
- "bugfix/**"
- "release/**"
- "hotfix/**"
- "support/**"
- "dependabot/**"
- "!main"
jobs:
unit-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
node: [ 16.x, 18.x, 20.x ]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run unit tests
run: pnpm run test