Skip to content

Commit

Permalink
ci: use renovate, update CI and precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
tagoro9 committed Jul 5, 2024
1 parent c7425ef commit 023c4c5
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 41 deletions.
8 changes: 0 additions & 8 deletions .fotingorc

This file was deleted.

6 changes: 0 additions & 6 deletions .github/dependabot.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["github>open-turo/renovate-config#v1"]
}
11 changes: 2 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,10 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: mfinelli/setup-shfmt@v3
- name: Install actionlint
uses: open-turo/action-install-release@v1
- uses: open-turo/actions-gha/lint@v2
with:
repository: rhysd/actionlint
- name: Pre-commit
uses: open-turo/action-pre-commit@v3
github-token: ${{ secrets.GITHUB_TOKEN }}

test:
name: Test
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ jobs:
run: pip install mkdocs[i18n] mkdocs-material
- name: Install Pillow and CairoSVG (required for social card generation)
run: pip install mkdocs-material
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
# You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: |
@open-turo/semantic-release-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup caching
uses: actions/cache@v4
with:
Expand All @@ -65,15 +56,28 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

release:
needs:
- build
- test
name: Release
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: open-turo/actions-gha/release@v2

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs:
- build
- test
- release
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/update-dependencies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update dependencies
concurrency: update-dependencies

on:
schedule:
# Every day at midnight
- cron: "0 0 * * *"
workflow_dispatch:
issue_comment:
types:
- edited
pull_request:
types:
- edited

jobs:
update-dependencies:
runs-on: ubuntu-latest
name: Update dependencies
steps:
- uses: open-turo/action-renovate@v1
with:
github-token: ${{ secrets.OPEN_TURO_GITHUB_TOKEN }}
15 changes: 8 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0 # Use the ref you want to point at
rev: v4.6.0 # Use the ref you want to point at
hooks:
- id: check-json
- id: check-yaml
- id: pretty-format-json
args:
- --autofix
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.6.0
hooks:
- id: eslint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.0
rev: v3.1.0
hooks:
- id: prettier
stages: [commit]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v4.1.0
rev: v9.16.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@open-turo/commitlint-config-conventional"]
- repo: https://github.com/rhysd/actionlint
rev: v1.6.23
rev: v1.7.1
hooks:
- id: actionlint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
Expand Down
File renamed without changes.

0 comments on commit 023c4c5

Please sign in to comment.