-
-
Notifications
You must be signed in to change notification settings - Fork 20
34 lines (27 loc) · 845 Bytes
/
ci.yml
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
33
34
name: CI
on:
pull_request: ~
push:
branches: [main]
jobs:
ci:
name: 'Test: Node ${{ matrix.node-version }} - Stylelint ${{ matrix.stylelint-version }} - Prettier ${{ matrix.prettier-version }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
stylelint-version: [15.x]
node-version: [18.x, 16.x, 14.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Use Stylelint ${{ matrix.stylelint-version }}
run: yarn upgrade stylelint@${{ matrix.stylelint-version }} --ignore-engines
- name: Install
run: yarn install --ignore-engines
- name: Test
run: yarn run test