Skip to content

CI: Run test againts multiple version of nodejs and prettier #11

CI: Run test againts multiple version of nodejs and prettier

CI: Run test againts multiple version of nodejs and prettier #11

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node_version: [18, 20]
prettier_version: ["2.0.0", "^2.0.0", "3.0.0"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: "yarn"
- name: Install Dependencies
run: yarn add prettier@${{ matrix.prettier_version }}
- name: Run Test
run: yarn test