Skip to content

Commit e8181fa

Browse files
refactor CI workflows for improved clarity and organization; add pnpm lockfile
1 parent 87502f0 commit e8181fa

File tree

3 files changed

+205
-15
lines changed

3 files changed

+205
-15
lines changed

.github/workflows/ci-dev.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ dev ]
66
pull_request:
7-
branches: [ dev ] # PRs cujo destino é dev
7+
branches: [ dev ]
88

99
concurrency:
1010
group: ci-dev-${{ github.ref }}
@@ -15,13 +15,24 @@ jobs:
1515
name: build-and-test (dev)
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v4
19-
- uses: actions/setup-node@v4
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Use Node.js 20
22+
uses: actions/setup-node@v4
2023
with:
2124
node-version: 20
22-
- uses: pnpm/action-setup@v4
25+
26+
- name: Setup pnpm
27+
uses: pnpm/action-setup@v4
2328
with:
2429
run_install: false
25-
- run: pnpm i
26-
- run: pnpm build
27-
- run: pnpm test
30+
31+
- name: Install (frozen lockfile)
32+
run: pnpm i --frozen-lockfile
33+
34+
- name: Build
35+
run: pnpm build
36+
37+
- name: Test
38+
run: pnpm test

.github/workflows/ci-main.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main ] # PRs cujo destino é main
8-
workflow_dispatch: {} # opcional: permite rodar manualmente
7+
branches: [ main ]
8+
workflow_dispatch: {}
99

1010
concurrency:
1111
group: ci-main-${{ github.ref }}
@@ -16,13 +16,24 @@ jobs:
1616
name: build-and-test (main)
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: actions/setup-node@v4
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Use Node.js 20
23+
uses: actions/setup-node@v4
2124
with:
2225
node-version: 20
23-
- uses: pnpm/action-setup@v4
26+
27+
- name: Setup pnpm
28+
uses: pnpm/action-setup@v4
2429
with:
2530
run_install: false
26-
- run: pnpm i
27-
- run: pnpm build
28-
- run: pnpm test
31+
32+
- name: Install (frozen lockfile)
33+
run: pnpm i --frozen-lockfile
34+
35+
- name: Build
36+
run: pnpm build
37+
38+
- name: Test
39+
run: pnpm test

pnpm-lock.yaml

Lines changed: 168 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)