-
Notifications
You must be signed in to change notification settings - Fork 35
32 lines (28 loc) · 753 Bytes
/
Copy pathtest.yml
File metadata and controls
32 lines (28 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [20.x, 22.x, 24.x]
prettier: ["3.0", "3.6"]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install yarn
run: npm i -g yarn
- name: Install project dependencies
run: yarn install
- name: Install specific prettier version
run: yarn add prettier@${{ matrix.prettier }} && yarn list --depth=0 --pattern "prettier"
- name: Run tests
run: yarn test