Skip to content

Commit

Permalink
ci(package-manager-ci): replace jobs with reusable workflow (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored May 2, 2023
1 parent f55d16a commit 66ec946
Showing 1 changed file with 13 additions and 60 deletions.
73 changes: 13 additions & 60 deletions .github/workflows/package-manager-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,65 +3,18 @@ name: package-manager-ci
on:
push:
branches:
- master

permissions:
contents: read
- main
- master
- next
- 'v*'
paths-ignore:
- 'docs/**'
- '*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'

jobs:
pnpm:
runs-on: ${{ matrix.os }}

strategy:
matrix:
# Maintenance and active LTS
node-version: [14, 16, 18]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install with pnpm
run: |
curl -L https://unpkg.com/@pnpm/self-installer | node
pnpm install
- name: Run tests
run: |
pnpm run test
yarn:
runs-on: ${{ matrix.os }}

strategy:
matrix:
# Maintenance and active LTS
node-version: [14, 16, 18]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install with yarn
run: |
curl -o- -L https://yarnpkg.com/install.sh | bash
yarn install --ignore-engines
- name: Run tests
run: |
yarn run test
test:
uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v3

0 comments on commit 66ec946

Please sign in to comment.