File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 11name : Build and Deploy
22
33on :
4+ pull_request :
45 push :
56 branches :
67 - master # Only on master now
78
89jobs :
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/action-setup@v1.2.1
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 🛎️
You can’t perform that action at this time.
0 commit comments