generated from Rock-n-Prog/web-ts-monorepo-starter-pack
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 901 Bytes
/
general.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
37
38
39
40
41
42
43
44
name: General
on:
workflow_dispatch:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2.2.2
with:
version: 7.9.5
- name: Install dependencies
run: pnpm install --ignore-scripts
# Weird fix for ls-lint not being installed at previous step
- name: Install ls-lint
run: pnpm add -g @ls-lint/ls-lint
- name: Lint file names
run: pnpm lint:ls
- name: Format
run: pnpm format