From baa99614acda304889b712141a190b4566613a42 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 2 May 2023 10:50:49 +0100 Subject: [PATCH] ci(package-manager-ci): replace jobs with reusable workflow --- .github/workflows/package-manager-ci.yml | 73 +++++------------------- 1 file changed, 13 insertions(+), 60 deletions(-) diff --git a/.github/workflows/package-manager-ci.yml b/.github/workflows/package-manager-ci.yml index 82a6e23..89d450f 100644 --- a/.github/workflows/package-manager-ci.yml +++ b/.github/workflows/package-manager-ci.yml @@ -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