Skip to content

Commit

Permalink
Merge pull request #1 from agaroot-technologies/chore/validate-renova…
Browse files Browse the repository at this point in the history
…te-config

[chore] Make Renovate config validate on change
  • Loading branch information
Karibash authored Oct 3, 2023
2 parents 8a106c7 + e283aa4 commit feca478
Show file tree
Hide file tree
Showing 4 changed files with 5,734 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Setup
description: Setup project

runs:
using: composite
steps:
- name: Setup pnpm
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598

- name: Expose pnpm store path
id: pnpm_store_path
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
name: Setup pnpm cache
with:
path: ${{ steps.pnpm_store_path.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile --prefer-offline
20 changes: 20 additions & 0 deletions .github/workflows/pr-push-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR Push check

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608

- name: Setup
uses: ./.github/actions/setup

- name: Test
run: pnpm run test
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@
"url": "git+https://github.com/agaroot-technologies/renovate-config.git"
},
"license": "MIT",
"scripts": {
"test": "renovate-config-validator default.json"
},
"devDependencies": {
"renovate": "37.4.0"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit feca478

Please sign in to comment.