diff --git a/.github/workflows/package-manager-ci.yml b/.github/workflows/package-manager-ci.yml index 51ce246..89d450f 100644 --- a/.github/workflows/package-manager-ci.yml +++ b/.github/workflows/package-manager-ci.yml @@ -3,64 +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