Skip to content

Commit 189f4ea

Browse files
committed
chore: setup github actions
1 parent 97133f2 commit 189f4ea

File tree

6 files changed

+256
-0
lines changed

6 files changed

+256
-0
lines changed

.github/ISSUE_TEMPLATE/.gitkeep

Whitespace-only changes.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- DO NOT IGNORE THE TEMPLATE!
2+
3+
Thank you for contributing!
4+
5+
Before submitting the PR, please make sure you do the following:
6+
7+
- Read the [Contributing Guide](https://github.com/org/repo/blob/main/CONTRIBUTING.md).
8+
- Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
9+
- Provide a description in this PR that addresses **what** the PR is solving, or reference the issue that it solves (e.g. `fixes #123`).
10+
- Ideally, include relevant tests that fail without this PR but pass with it.
11+
12+
-->
13+
14+
### Description
15+
16+
<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->
17+
18+
### Linked Issues
19+
20+
### Additional context
21+
22+
<!-- e.g. is there anything you'd like reviewers to focus on? -->

.github/labels.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
- name: feature
2+
description: Includes new features
3+
color: 'ffff00'
4+
- name: bug
5+
description: Includes new features
6+
color: 'ee0701'
7+
- name: improvement
8+
description: Includes backwards-compatible fixes
9+
color: '1d76db'
10+
- name: breaking
11+
description: Includes backwards-incompatible fixes
12+
color: 'b60205'
13+
- name: refactoring
14+
description: A code change that neither fixes a bug nor adds a feature
15+
color: 'fbca04'
16+
- name: security
17+
description: Security fixes
18+
color: 'b60205'
19+
- name: documentation
20+
description: Includes documetation fixes
21+
color: '5319e7'
22+
- name: example
23+
description: Includes example and demo code fixes
24+
color: 'db0875'
25+
- name: deprecated
26+
description: Includes deprecate fixes
27+
color: 'f7ffa8'
28+
- name: performance
29+
description: Includes performance fixes
30+
color: 'cc317c'
31+
- name: i18n
32+
description: Includes internationalization fixes
33+
color: 'ffd412'
34+
- name: a11y
35+
description: Inlucdes accessibility fixes
36+
color: '0000ff'
37+
- name: dependency
38+
description: Includes dependency fixes
39+
color: 'ffbce7'
40+
- name: todo
41+
description: todo tasks
42+
color: 'c2e0c6'
43+
- name: duplicate
44+
description: This issue or Pull Request already exists
45+
color: 'ededed'
46+
- name: help wanted
47+
description: Extra attention is needed
48+
color: 'e99695'
49+
- name: good first issue
50+
description: Good for newcomers
51+
color: '7057ff'
52+
- name: 'status: abandoned'
53+
description: The issue or Pull Request is wontfix
54+
color: '000000'
55+
- name: 'status: blocked'
56+
description: Progress on the issue is Blocked
57+
color: 'ee0701'
58+
- name: 'status: in progress'
59+
description: Work in Progress
60+
color: 'cccccc'
61+
- name: 'status: proposal'
62+
description: Request for comments
63+
color: 'd4c5f9'
64+
- name: 'status: pull request welcome'
65+
description: Welcome to Pull Request
66+
color: '2E7733'
67+
- name: 'status: review needed'
68+
description: Request for review
69+
color: 'fbca04'
70+
- name: 'status: need more repro codes or info'
71+
description: Lacks enough info to make progress
72+
color: 'F9C90A'

.github/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
authors:
6+
- octocat
7+
- renovate[bot]
8+
categories:
9+
- title: 🌟 Features
10+
labels:
11+
- feature
12+
- title: 🐛 Bug Fixes
13+
labels:
14+
- bug
15+
- title: 💥 Breaking Changes
16+
labels:
17+
- breaking
18+
- title: ⚠️ Deprecated Features
19+
labels:
20+
- deprecated
21+
- title: ⚡ Improvement Features
22+
labels:
23+
- improvement
24+
- title: 🔒 Security Fixes
25+
labels:
26+
- security
27+
- title: 📈 Performance Fixes
28+
labels:
29+
- performance
30+
- title: 📝️ Documentations
31+
labels:
32+
- documentation
33+
- title: 👕 Refactoring
34+
labels:
35+
- refactoring
36+
- title: 🍭 Examples
37+
labels:
38+
- example
39+
- title: 🌐 ♿ Internationalization or Accessibility Fixes
40+
labels:
41+
- a11y
42+
- i18n
43+
- title: 🪄 Others
44+
labels:
45+
- chore

.github/workflows/ci.yml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- name: Checkout codes
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup deno
26+
uses: denoland/setup-deno@v1
27+
with:
28+
deno-version: v1.x
29+
30+
- name: Lint codes
31+
run: deno lint
32+
33+
build:
34+
name: Build
35+
strategy:
36+
matrix:
37+
os: [ubuntu-latest]
38+
node: [18.x]
39+
40+
runs-on: ${{ matrix.os }}
41+
42+
steps:
43+
- name: Checkout codes
44+
uses: actions/checkout@v4
45+
46+
- name: Setup deno
47+
uses: denoland/setup-deno@v1
48+
with:
49+
deno-version: v1.x
50+
51+
- name: Setup bun
52+
uses: oven-sh/setup-bun@v1
53+
54+
- name: Enable corepack
55+
run: corepack enable
56+
57+
- name: Setup node
58+
uses: actions/setup-node@v3
59+
with:
60+
node-version: ${{ matrix.node }}
61+
62+
- name: Install dependencies
63+
run: bun install
64+
65+
- name: Build codes
66+
run: npm run build
67+
68+
test:
69+
name: test
70+
strategy:
71+
matrix:
72+
os: [ubuntu-latest]
73+
node: [18.x]
74+
75+
runs-on: ${{ matrix.os }}
76+
77+
steps:
78+
- name: Checkout codes
79+
uses: actions/checkout@v4
80+
81+
- name: Setup deno
82+
uses: denoland/setup-deno@v1
83+
with:
84+
deno-version: v1.x
85+
86+
- name: Setup bun
87+
uses: oven-sh/setup-bun@v1
88+
89+
- name: Enable corepack
90+
run: corepack enable
91+
92+
- name: Setup node
93+
uses: actions/setup-node@v3
94+
with:
95+
node-version: ${{ matrix.node }}
96+
97+
- name: Install dependencies
98+
run: bun install
99+
100+
- name: Build codes
101+
run: npm test
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Label sync
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- .github/labels.yml
9+
- .github/workflows/github-label-sync.yml
10+
workflow_dispatch:
11+
12+
jobs:
13+
sync:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: r7kamura/github-label-sync-action@v0

0 commit comments

Comments
 (0)