Skip to content

Merge pull request #217 from bbsakura/renovate/actions-checkout-4.x #1165

Merge pull request #217 from bbsakura/renovate/actions-checkout-4.x

Merge pull request #217 from bbsakura/renovate/actions-checkout-4.x #1165

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
list-configs:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- id: set-matrix
run: echo "::set-output name=matrix::$(ls *.json | jq -R -s -c 'split("\n")[:-1]')"
validate:
needs: list-configs
runs-on: ubuntu-latest
strategy:
matrix:
config: ${{ fromJson(needs.list-configs.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '14.x'
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node
- name: Validate ${{ matrix.config }}
run: RENOVATE_CONFIG_FILE=${{ matrix.config }} npx --package renovate -c 'renovate-config-validator'