Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(package-manager-ci): bring into line with fastify repo #53

Merged
merged 1 commit into from
May 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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