Skip to content

Commit

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

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 05f744f

Please sign in to comment.