Criação do primeiro módulo #601
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: Node.js CI | |
on: | |
push: | |
branches: ['master', 'develop'] | |
pull_request: | |
branches: ['master', 'develop'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Code checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Style-guide Tests (Stylelint, Prettier and Eslint) | |
run: pnpm code-style | |
- name: Install e2e dependencies | |
run: pnpm playwright install --with-deps | |
- name: Run unit Tests | |
run: pnpm test --silent | |
- name: Run e2e tests | |
run: pnpm playwright test | |
- name: Run ct tests | |
run: pnpm test-ct | |
- name: Build | |
run: pnpm build |