Skip to content

Commit 4855198

Browse files
committed
👷 add github actions
1 parent d365a4f commit 4855198

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed

.github/workflows/astro.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches: [main]
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- '**.json'
8+
- 'src/**'
9+
jobs:
10+
astro:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: 16
17+
cache: 'yarn'
18+
- name: install dependencies
19+
run: yarn install
20+
- name: run astro checker
21+
run: yarn check:astro

.github/workflows/format.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches: [main]
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- '**.json'
8+
- 'src/**'
9+
jobs:
10+
format:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: 16
17+
cache: 'yarn'
18+
- name: install dependencies
19+
run: yarn install
20+
- name: run format checker
21+
run: yarn check:format

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches: [main]
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- '**.json'
8+
- 'src/**'
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: 16
17+
cache: 'yarn'
18+
- name: install dependencies
19+
run: yarn install
20+
- name: run lint checker
21+
run: yarn check:lint

.github/workflows/type.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches: [main]
4+
pull_request:
5+
branches: [main]
6+
paths:
7+
- '**.json'
8+
- 'src/**'
9+
jobs:
10+
type:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: 16
17+
cache: 'yarn'
18+
- name: install dependencies
19+
run: yarn install
20+
- name: run type checker
21+
run: yarn check:type

0 commit comments

Comments
 (0)