Skip to content

Commit 0561dcc

Browse files
committed
Add ci
1 parent 0c1d942 commit 0561dcc

File tree

4 files changed

+155
-0
lines changed

4 files changed

+155
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Motivation
2+
3+
<!-- Why is this change necessary? Link issues here if applicable. -->
4+
5+
# Changes
6+
7+
<!-- What changes have been performed? -->

.github/dependabot.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
registries:
3+
github:
4+
type: git
5+
url: https://github.com
6+
username: x-access-token
7+
password: ${{ secrets.DEPENDABOT_CONTENT_PAT }}
8+
updates:
9+
- package-ecosystem: github-actions
10+
directory: /
11+
schedule:
12+
interval: monthly
13+
reviewers:
14+
- quantco/ci
15+
registries:
16+
- github
17+
groups:
18+
gh-actions:
19+
patterns:
20+
- "*"
21+
commit-message:
22+
prefix: ci
23+
- package-ecosystem: cargo
24+
directory: /
25+
schedule:
26+
interval: monthly
27+
registries:
28+
- github
29+
groups:
30+
rust-dependencies:
31+
patterns:
32+
- "*"
33+
commit-message:
34+
prefix: build
35+
labels:
36+
- dependencies

.github/release-drafter.yml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# ------------------------------------- PULL REQUEST LABELS ------------------------------------- #
2+
autolabeler:
3+
# Conventional Commit Types (https://github.com/commitizen/conventional-commit-types)
4+
- label: build
5+
title:
6+
- '/^build(\(.*\))?(\!)?\:/'
7+
- label: chore
8+
title:
9+
- '/^chore(\(.*\))?(\!)?\:/'
10+
- label: ci
11+
title:
12+
- '/^ci(\(.*\))?(\!)?\:/'
13+
- label: documentation
14+
title:
15+
- '/^docs(\(.*\))?(\!)?\:/'
16+
- label: enhancement
17+
title:
18+
- '/^feat(\(.*\))?(\!)?\:/'
19+
- label: fix
20+
title:
21+
- '/^fix(\(.*\))?(\!)?\:/'
22+
- label: performance
23+
title:
24+
- '/^perf(\(.*\))?(\!)?\:/'
25+
- label: refactor
26+
title:
27+
- '/^refactor(\(.*\))?(\!)?\:/'
28+
- label: revert
29+
title:
30+
- '/^revert(\(.*\))?(\!)?\:/'
31+
- label: style
32+
title:
33+
- '/^style(\(.*\))?(\!)?\:/'
34+
- label: test
35+
title:
36+
- '/^test(\(.*\))?(\!)?\:/'
37+
# Custom Types
38+
- label: breaking
39+
title:
40+
- '/^[a-z]+(\(.*\))?\!\:/'
41+
# ------------------------------------ RELEASE CONFIGURATION ------------------------------------ #
42+
category-template: "### $TITLE"
43+
change-template: "- $TITLE by @$AUTHOR in [#$NUMBER]($URL)"
44+
replacers:
45+
# remove conventional commit tag & scope from change list
46+
- search: '/- [a-z]+(\(.*\))?(\!)?\: /g'
47+
replace: "- "
48+
template: |
49+
## What's Changed
50+
51+
$CHANGES
52+
53+
**Full Changelog:** [`$PREVIOUS_TAG...v$RESOLVED_VERSION`](https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION)
54+
categories:
55+
- title: ⚠️ Breaking Changes
56+
labels:
57+
- breaking
58+
- title: ✨ New Features
59+
labels:
60+
- enhancement
61+
- title: 🐞 Bug Fixes
62+
labels:
63+
- fix
64+
- title: 🏎️ Performance Improvements
65+
labels:
66+
- performance
67+
- title: 📚 Documentation
68+
labels:
69+
- documentation
70+
- title: 🏗️ Testing
71+
labels:
72+
- test
73+
- title: ⚙️ Automation
74+
labels:
75+
- ci
76+
- title: 🛠 Builds
77+
labels:
78+
- build
79+
- title: 💎 Code Style
80+
labels:
81+
- style
82+
- title: 📦 Refactorings
83+
labels:
84+
- refactor
85+
- title: ♻️ Chores
86+
labels:
87+
- chore
88+
- title: 🗑 Reverts
89+
labels:
90+
- revert

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
on: [push]
3+
4+
# Automatically stop old builds on the same branch/PR
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
test:
11+
name: Run tests
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
toolchain: [stable]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- run: rustup update ${{ matrix.toolchain }}
20+
- run: rustup default ${{ matrix.toolchain }}
21+
- run: cargo build --verbose
22+
- run: cargo test --verbose

0 commit comments

Comments
 (0)