Skip to content

Commit

Permalink
chore: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jan 8, 2024
1 parent 31145ae commit b3fbf16
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: kazupon
87 changes: 87 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
- name: feature
description: Includes new features
color: 'ffff00'
- name: bug
description: Includes new features
color: 'ee0701'
- name: improvement
description: Includes backwards-compatible fixes
color: '1d76db'
- name: breaking
description: Includes backwards-incompatible fixes
color: 'b60205'
- name: refactoring
description: A code change that neither fixes a bug nor adds a feature
color: 'fbca04'
- name: security
description: Security fixes
color: 'b60205'
- name: documentation
description: Includes documetation fixes
color: '5319e7'
- name: example
description: Includes example and demo code fixes
color: 'db0875'
- name: deprecated
description: Includes deprecate fixes
color: 'f7ffa8'
- name: performance
description: Includes performance fixes
color: 'cc317c'
- name: i18n
description: Includes internationalization fixes
color: 'ffd412'
- name: a11y
description: Inlucdes accessibility fixes
color: '0000ff'
- name: dependency
description: Includes dependency fixes
color: 'ffbce7'
- name: todo
description: todo tasks
color: 'c2e0c6'
- name: duplicate
description: This issue or Pull Request already exists
color: 'ededed'
- name: help wanted
description: Extra attention is needed
color: 'e99695'
- name: good first issue
description: Good for newcomers
color: '7057ff'
- name: 'status: abandoned'
description: The issue or Pull Request is wontfix
color: '000000'
- name: 'status: blocked'
description: Progress on the issue is Blocked
color: 'ee0701'
- name: 'status: in progress'
description: Work in Progress
color: 'cccccc'
- name: 'status: proposal'
description: Request for comments
color: 'd4c5f9'
- name: 'status: pull request welcome'
description: Welcome to Pull Request
color: '2E7733'
- name: 'status: review needed'
description: Request for review
color: 'fbca04'
- name: 'status: need more repro codes or info'
description: Lacks enough info to make progress
color: 'F9C90A'
- name: '🧹 p1-chore'
description: 'Priority 1: no change in change code behavior'
color: '#FDDFD7'
- name: '🍰 p2-nice-to-have'
description: "Priority 2: nothing is broken but it's worth addressing"
color: '#0e8a16'
- name: '🔨 p3-minor-bug'
description: 'Priority 3: a bug in an edge case that only affects very specific usage'
color: '#fbca04'
- name: '❗ p4-important'
description: 'Priority 4: bugs that violate documented behavior, or significantly impact perf'
color: '#d93f0b'
- name: '🔥 p5-urgent'
description: 'Priority 5: build-breaking bugs that affect most users and should be fixed ASAP'
color: '#ee0701'
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: CI

env:
CI: true
CARGO_TERM_COLOR: always

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
name: Build And Test
steps:
- name: Checkout codes
uses: actions/checkout@v4

- name: Format
run: cargo fmt --all --check

- name: Lint
run: cargo clippy --verbose

- name: Build
run: cargo build --verbose

- name: Test
run: cargo test --verbose
16 changes: 16 additions & 0 deletions .github/workflows/github-label-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Label sync

on:
push:
branches:
- main
paths:
- .github/labels.yml
- .github/workflows/github-label-sync.yml
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: r7kamura/github-label-sync-action@v0

0 comments on commit b3fbf16

Please sign in to comment.