Skip to content

ci(workflows): corrigindo erro de paralelismo entre as pipelines de d… #7

ci(workflows): corrigindo erro de paralelismo entre as pipelines de d…

ci(workflows): corrigindo erro de paralelismo entre as pipelines de d… #7

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
id: git-clone
name: Cloning repository
- uses: pnpm/action-setup@v2
id: install-pnpm
name: Installing PNPM
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
id: set-nodejs
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
- name: Install dependencies
id: set-deps
run: pnpm install --frozen-lockfile
- name: Run unit tests
id: unit-tests
run: pnpm run test