forked from fomantic/Fomantic-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 863 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
35
name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Install dependencies
run: yarn
- name: Lint JS files
run: npm run lint
test:
name: Test build process on node ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [12, 14, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: pre-install
run: sh ./scripts/preinstall.sh
- name: Install dependencies
run: yarn
- name: pre fomantic install & gulp build
run: yarn gulp install