Skip to content

Commit b51db5c

Browse files
committed
chore: add github action job
1 parent 4c5bb7f commit b51db5c

2 files changed

Lines changed: 57 additions & 26 deletions

File tree

.github/workflows/CI.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,32 @@ jobs:
3131
run: |
3232
apm install
3333
34-
# Lint:
35-
# if: "!contains(github.event.head_commit.message, '[skip ci]')"
36-
# runs-on: ubuntu-latest
37-
# env:
38-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
# steps:
40-
# - uses: actions/checkout@v2
41-
# with:
42-
# fetch-depth: 0
43-
# - name: Commit lint ✨
44-
# uses: wagoid/commitlint-github-action@v2
45-
#
46-
# - uses: UziTech/action-setup-atom@v1
47-
# - name: Setup PNPM
48-
# uses: pnpm/action-setup@v1.2.1
49-
# with:
50-
# version: latest
51-
#
52-
# - name: Install dependencies
53-
# run: pnpm install
54-
#
55-
# - name: Format ✨
56-
# run: pnpm test.format
57-
#
58-
# - name: Lint ✨
59-
# run: pnpm test.lint
34+
Lint:
35+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
36+
runs-on: ubuntu-latest
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
steps:
40+
- uses: actions/checkout@v2
41+
with:
42+
fetch-depth: 0
43+
- name: Commit lint ✨
44+
uses: wagoid/commitlint-github-action@v2
45+
46+
- uses: UziTech/action-setup-atom@v1
47+
- name: Setup PNPM
48+
uses: pnpm/action-setup@v1.2.1
49+
with:
50+
version: latest
51+
52+
- name: Install dependencies
53+
run: pnpm install
54+
55+
- name: Format ✨
56+
run: pnpm test.format
57+
58+
- name: Lint ✨
59+
run: pnpm test.lint
6060

6161
Release:
6262
needs: [Test]

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,34 @@ module.exports = {
6464
// semi: true,
6565
}
6666
```
67+
68+
### GitHub Action Lint Job:
69+
70+
```yaml
71+
Lint:
72+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
73+
runs-on: ubuntu-latest
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
steps:
77+
- uses: actions/checkout@v2
78+
with:
79+
fetch-depth: 0
80+
- name: Commit lint ✨
81+
uses: wagoid/commitlint-github-action@v2
82+
83+
- uses: atom-community/action-setup-atom@v1
84+
- name: Setup PNPM
85+
uses: pnpm/action-setup@master
86+
with:
87+
version: latest
88+
89+
- name: Install dependencies
90+
run: pnpm install
91+
92+
- name: Format ✨
93+
run: pnpm test.format
94+
95+
- name: Lint ✨
96+
run: pnpm test.lint
97+
```

0 commit comments

Comments
 (0)