Skip to content

Commit 5521369

Browse files
committed
fix: do not import extraneous-dependencies
1 parent 33220c6 commit 5521369

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/main.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,44 @@
11
name: Build and Deploy
22

33
on:
4+
pull_request:
45
push:
56
branches:
67
- master # Only on master now
78

89
jobs:
10+
Lint:
11+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
12+
runs-on: ubuntu-latest
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Commit lint ✨
21+
uses: wagoid/commitlint-github-action@v2
22+
23+
- uses: atom-community/action-setup-atom@v1
24+
- name: Setup PNPM
25+
uses: pnpm/[email protected]
26+
with:
27+
version: latest
28+
29+
- name: Install dependencies
30+
run: pnpm install
31+
32+
# - name: Format ✨
33+
# run: pnpm test.format
34+
35+
- name: Lint ✨
36+
run: pnpm test.lint
37+
938
build-and-deploy:
39+
needs: [Lint]
40+
if: github.ref == 'refs/heads/master' &&
41+
github.event.repository.fork == false
1042
runs-on: ubuntu-latest
1143
steps:
1244
- name: Checkout 🛎️

0 commit comments

Comments
 (0)