From 97d70cd15e3fc4ca47aefac54b6f795df73a2b37 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 31 May 2022 13:29:37 +0100 Subject: [PATCH] ci(package-manager-ci): bring into line with fastify repo (#53) --- .github/workflows/package-manager-ci.yml | 30 ++++++++++++++---------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/package-manager-ci.yml b/.github/workflows/package-manager-ci.yml index bfbd7e0..8dfd96b 100644 --- a/.github/workflows/package-manager-ci.yml +++ b/.github/workflows/package-manager-ci.yml @@ -1,9 +1,12 @@ -name: Package Manager CI +name: package-manager-ci on: push: branches: - - master + - main + +permissions: + contents: read jobs: pnpm: @@ -12,51 +15,52 @@ jobs: strategy: matrix: # Maintenance and active LTS - node-version: [10, 12, 14, 16] - os: [ubuntu-latest] + node-version: [14, 16] + os: [ubuntu-18.04] steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - name: Use Node.js uses: actions/setup-node@v3 - id: setup_node with: node-version: ${{ matrix.node-version }} - name: Install with pnpm - id: install_package_manager run: | curl -L https://unpkg.com/@pnpm/self-installer | node pnpm install + - name: Run tests - id: test run: | pnpm run test + yarn: runs-on: ${{ matrix.os }} strategy: matrix: # Maintenance and active LTS - node-version: [10, 12, 14, 16] - os: [ubuntu-latest] + node-version: [14, 16] + os: [ubuntu-18.04] steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - name: Use Node.js - id: setup_node uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Install with yarn - id: install_package_manager run: | curl -o- -L https://yarnpkg.com/install.sh | bash yarn install --ignore-engines + - name: Run tests - id: test run: | - yarn run test \ No newline at end of file + yarn run test