Skip to content

Commit 8b0e018

Browse files
authored
ci(package-manager-ci): replace jobs with reusable workflow (#65)
1 parent 1deb5c0 commit 8b0e018

File tree

1 file changed

+13
-59
lines changed

1 file changed

+13
-59
lines changed

.github/workflows/package-manager-ci.yml

Lines changed: 13 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,18 @@ name: package-manager-ci
33
on:
44
push:
55
branches:
6-
- master
7-
8-
permissions:
9-
contents: read
6+
- main
7+
- master
8+
- next
9+
- 'v*'
10+
paths-ignore:
11+
- 'docs/**'
12+
- '*.md'
13+
pull_request:
14+
paths-ignore:
15+
- 'docs/**'
16+
- '*.md'
1017

1118
jobs:
12-
pnpm:
13-
runs-on: ${{ matrix.os }}
14-
15-
strategy:
16-
matrix:
17-
# Maintenance and active LTS
18-
node-version: [14, 16, 18]
19-
os: [ubuntu-latest]
20-
21-
steps:
22-
- uses: actions/checkout@v3
23-
with:
24-
persist-credentials: false
25-
26-
- name: Use Node.js
27-
uses: actions/setup-node@v3
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
31-
- name: Install with pnpm
32-
run: |
33-
curl -L https://unpkg.com/@pnpm/self-installer | node
34-
pnpm install
35-
36-
- name: Run tests
37-
run: |
38-
pnpm run test
39-
40-
yarn:
41-
runs-on: ${{ matrix.os }}
42-
43-
strategy:
44-
matrix:
45-
# Maintenance and active LTS
46-
node-version: [14, 16, 18]
47-
os: [ubuntu-latest]
48-
49-
steps:
50-
- uses: actions/checkout@v3
51-
with:
52-
persist-credentials: false
53-
54-
- name: Use Node.js
55-
uses: actions/setup-node@v3
56-
with:
57-
node-version: ${{ matrix.node-version }}
58-
59-
- name: Install with yarn
60-
run: |
61-
curl -o- -L https://yarnpkg.com/install.sh | bash
62-
yarn install --ignore-engines
63-
64-
- name: Run tests
65-
run: |
66-
yarn run test
19+
test:
20+
uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v3

0 commit comments

Comments
 (0)