-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 794 Bytes
/
main.yml
File metadata and controls
37 lines (28 loc) · 794 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
33
34
35
36
37
name: Main
on:
push:
branches:
- main
jobs:
linter:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x']
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- name: Git sort sha
run: echo ${SHORT_SHA}
- name: Setup Node.js version ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install PNPM
run: npm install -g pnpm
- name: Install dependencies using PNPM
run: pnpm install --frozen-lockfile
- name: Linter
run: pnpm run lint