Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/web/vite-4.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
KeisukeYamashita authored Feb 20, 2024
2 parents eb94ceb + a59ccc4 commit e7ff751
Show file tree
Hide file tree
Showing 27 changed files with 673 additions and 371 deletions.
12 changes: 8 additions & 4 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ updates:
prefix: bump
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
open-pull-requests-limit: 3

# Maintain dependencies for Docker
- package-ecosystem: "docker"
Expand All @@ -16,13 +17,15 @@ updates:
prefix: bump
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
open-pull-requests-limit: 3

# Maintain dependencies for GitHub Action
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
open-pull-requests-limit: 3

# Maintain dependencies for npm
- package-ecosystem: "npm"
Expand All @@ -31,4 +34,5 @@ updates:
prefix: bump
directory: "/web"
schedule:
interval: "daily"
interval: "monthly"
open-pull-requests-limit: 3
59 changes: 0 additions & 59 deletions .github/workflows/build_release.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/bump.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Bump
on:
release:
types:
- published

permissions:
contents: write # To checkout and create PRs
pull-requests: write # To comment to PRs

jobs:
bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- id: bump
uses: tj-actions/cargo-bump@v2

- uses: peter-evans/create-pull-request@v6
with:
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: "bump-${{ steps.bump.outputs.new_version }}"
commit-message: "bump(cli): bump version to ${{ steps.bump.outputs.new_version }}"
title: "bump(cli): bump version to ${{ steps.bump.outputs.new_version }}"
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
[A-Z]+
requireScope: true
subjectPattern: ^(?![A-Z]).+$
scope: |
scopes: |
.github
cli
deps
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,53 @@ permissions:
pages: write # To deploy to GitHub Pages

jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: true
matrix:
config:
# See details fore GitHub Actions runners
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
- os: ubuntu-20.04
rust_target: x86_64-unknown-linux-gnu
ext: ""
args: ""
- os: macos-latest
rust_target: x86_64-apple-darwin
ext: ""
args: ""
- os: macos-14 # beta (Apple Silicon)
rust_target: aarch64-apple-darwin
ext: ""
args: ""
- os: windows-latest
rust_target: x86_64-pc-windows-msvc
ext: ".exe"
args: ""
- os: windows-latest
rust_target: aarch64-pc-windows-msvc
ext: ".exe"
args: "--no-default-features --features native-tls-vendored"
steps:
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo build --release

- run: tar czvf commitlint-${{ github.ref_name }}-${{ matrix.config.rust_target }}.tar.gz -C target/release commitlint${{ matrix.config.ext }}

- uses: actions/upload-artifact@v4
with:
name: commitlint-${{ matrix.config.rust_target }}
path: commitlint-${{ github.ref_name }}-${{ matrix.config.rust_target }}.tar.gz
if-no-files-found: error

crate:
runs-on: ubuntu-latest
environment: crate
Expand Down Expand Up @@ -68,12 +115,19 @@ jobs:
publish:
runs-on: ubuntu-latest
needs:
- build
- crate
- docker
- web
steps:
- uses: actions/download-artifact@v4
with:
path: commitlint
pattern: commitlint-*
merge-multiple: true
- uses: ncipollo/release-action@v1
with:
artifacts: commitlint/commitlint-*.tar.gz
generateReleaseNotes: true

web:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.commitlintrc.*
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"DavidAnson.vscode-markdownlint",
"esbenp.prettier-vscode",
"rust-lang.rust-analyzer",
"streetsidesoftware.code-spell-checker",
"usernamehw.errorlens"
]
}
41 changes: 41 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'commitlint'",
"cargo": {
"args": ["build", "--bin=commitlint", "--package=commitlint-rs"],
"filter": {
"name": "commitlint",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'commitlint'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=commitlint",
"--package=commitlint-rs"
],
"filter": {
"name": "commitlint",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ documentation = "https://keisukeyamashita.github.io/commitlint-rs"
authors = ["KeisukeYamashita <[email protected]>"]
keywords = ["conventional-commits", "lint"]
categories = ["command-line-utilities"]
version = "0.1.6"
version = "0.1.9"
readme = "README.md"
repository = "https://github.com/KeisukeYamashita/commitlint-rs"
license = "MIT OR Apache-2.0"
Expand Down
Loading

0 comments on commit e7ff751

Please sign in to comment.