Skip to content

Commit

Permalink
ci: add renovate and update most of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tagoro9 committed Mar 25, 2024
1 parent 4e7e4b4 commit cee290c
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 16 deletions.
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"]
}
14 changes: 11 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: CI

on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Pre-commit
uses: open-turo/action-pre-commit@v2
uses: open-turo/action-pre-commit@v3
- name: Check release notes on pull_request
if: github.event_name == 'pull_request'
uses: open-turo/actions-release/lint-release-notes@v4
test:
name: Test
runs-on: ubuntu-latest
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Pre-commit
uses: open-turo/action-pre-commit@v2
uses: open-turo/action-pre-commit@v3
release:
name: Release
needs: [lint]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup tools
uses: open-turo/action-setup-tools@v1
uses: open-turo/action-setup-tools@v2
- name: Release
id: release
uses: cycjimmy/semantic-release-action@v3
uses: open-turo/actions-release/semantic-release@v4
with:
extra_plugins: |
@open-turo/semantic-release-config@^1.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-plugins: |
@open-turo/semantic-release-config
- name: Major branch
if: steps.release.outputs.new_release_published == 'true'
uses: open-turo/action-major-release@v1
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 }}
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

12 changes: 9 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
rev: v3.1.0
hooks:
- id: prettier
stages: [commit]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v2.2.0
rev: v9.11.0
hooks:
- id: commitlint
language_version: system
stages: [commit-msg]
additional_dependencies: ["@open-turo/commitlint-config-conventional"]
- repo: https://github.com/rhysd/actionlint
Expand Down

0 comments on commit cee290c

Please sign in to comment.