Skip to content

Commit

Permalink
feat(ci): add CI to check for invalid Preset config
Browse files Browse the repository at this point in the history
  • Loading branch information
yannispgs committed Nov 16, 2023
1 parent 789a6e9 commit c0e011b
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ REMOVE THIS TO WRITE YOUR OWN DESCRIPTION }

## PR title rules

- Should have an emoji so it's clear what it does from the list view
- Should have a type (feat, fix, chore, ...)
- Can have a subject (but it's not mandatory)

## Available emojis

- ✨ → New feature
- 🐛 → Bug fix
- ♻️ → Drastically rewrites a big percentage of the code or architecture
- 🏗 → Add/update unit tests
- 📦 → Dependency maintenance and/or internal script update
- 📖 → Documentation update

## Allowed types
- chore
- docs
- feat
- fix
- refactor
- test
- tests
- deploy
- release

## Don't do

```
Feature: Add new time picker
fix the thing that was not working
```

## Do

```
✨ feat(dashboard): add new time picker to stats view
🐛 fix(access): don't register emails twice on mailchimp
```
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
push:
branches: [master]
tags: ['**']
pull_request:
branches: [master]

jobs:
validate:
name: Validate Presets
runs-on: ubuntu-22.04
timeout-minutes: 2
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Validate Presets config
uses: suzuki-shunsuke/[email protected]
with:
config_file_path: "*.json"

0 comments on commit c0e011b

Please sign in to comment.