Skip to content

Commit

Permalink
ci(package-manager-ci): bring into line with fastify repo (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored May 31, 2022
1 parent ad78eab commit 97d70cd
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/package-manager-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Package Manager CI
name: package-manager-ci

on:
push:
branches:
- master
- main

permissions:
contents: read

jobs:
pnpm:
Expand All @@ -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
yarn run test

0 comments on commit 97d70cd

Please sign in to comment.