Skip to content

Commit

Permalink
fix: sentence casing fix (#61)
Browse files Browse the repository at this point in the history
* fix: sentence casing fix

* chore: update actions to run on PRs

* chore: update publish workflow to use check workflow

* chore: add concurrency check
  • Loading branch information
sjungling authored Aug 27, 2024
1 parent d61b833 commit ea3c3cf
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
name: Run quality checks

# on all branches
on:
push:
branches:
- '*'
workflow_call:
workflow_dispatch:
pull_request:
branches: [main]

concurrency:
group: "checks ${{ github.ref }}"
cancel-in-progress: true

jobs:
publish:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.8
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[ci]"
- name: Check sentence casing
run: |
poe check-sentence-casing
run: poe check-sentence-casing

- name: Check options
run: |
poe check-options
run: poe check-options
15 changes: 5 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,25 @@ on:
- patch

jobs:
check:
uses: ./.github/workflows/checks.yml
secrets: inherit
publish:
needs: [check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: 3.8
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install twine
pip install ".[ci]"
- name: Check sentence casing
run: |
poe check-sentence-casing
- name: Check options
run: |
poe check-options
- name: Bump version and commit change
run: |
semantic-release version --${{ github.event.inputs.scope }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
type: specs.moderne.io/v1beta/visualization
name: io.moderne.DependencyUsageViolinNuget
displayName: C# Dependency usage
displayName: C# dependency usage
description: >
See the distribution of dependencies by version.
recipe:
Expand Down

0 comments on commit ea3c3cf

Please sign in to comment.