forked from carbon-design-system/carbon-website
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 846 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
36
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/[email protected]
with:
node-version: '20.x'
- name: Set yarn version
run: yarn set version 4.0.1
- name: Install dependencies
run: yarn install --immutable
- name: Check formatting of project files
run: yarn format:check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/[email protected]
with:
node-version: '20.x'
- name: Install dependencies
run: yarn install --immutable
- name: Lint JavaScript files
run: yarn lint:js