diff --git a/.github/config.js b/.github/config.js new file mode 100644 index 00000000..51dc8219 --- /dev/null +++ b/.github/config.js @@ -0,0 +1,17 @@ +module.exports = { + branchPrefix: 'ga-renovate/', + dryRun: true, + gitAuthor: 'Renovate Bot ', + logLevel: 'debug', + onboarding: false, + platform: 'github', + repositories: ['renovatebot/github-action'], + packageRules: [ + { + description: 'lockFileMaintenance', + updateTypes: ['lockFileMaintenance'], + enabled: true, + schedule: [], + }, + ], +}; diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..9acc2879 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,45 @@ +name: build + +on: [push, pull_request] + +jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.1.0 + with: + fetch-depth: 0 + - name: Lint commit messages + uses: wagoid/commitlint-github-action@v1.6.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.1.0 + - name: Setup node + uses: actions/setup-node@v1.4.1 + with: + node-version: '12.x' + - name: Install project + run: npm ci + - name: Lint + run: npm run lint + test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2.1.0 + - name: Renovate test + uses: ./ + with: + configurationFile: .github/config.js + token: ${{ secrets.RENOVATE_TOKEN }} + + build: + needs: [lint, commitlint, test] + runs-on: ubuntu-latest + steps: + - run: echo 'Dummy' diff --git a/.github/workflows/lint-commit-messages.yml b/.github/workflows/lint-commit-messages.yml deleted file mode 100644 index 2de87938..00000000 --- a/.github/workflows/lint-commit-messages.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Lint commit messages -on: - push: - branches: - - master - pull_request: -jobs: - commitlint: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2.1.0 - with: - fetch-depth: 0 - - name: Lint commit messages - uses: wagoid/commitlint-github-action@v1.6.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 6fc29499..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Lint -on: - push: - branches: - - master - pull_request: -jobs: - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2.1.0 - - name: Setup node - uses: actions/setup-node@v1.4.1 - with: - node-version: '12.x' - - name: Install project - run: npm ci - - name: Lint - run: npm run lint diff --git a/example/config.js b/example/config.js index 86f236a9..e6b7683b 100644 --- a/example/config.js +++ b/example/config.js @@ -6,5 +6,4 @@ module.exports = { onboarding: false, platform: 'github', repositories: ['renovatebot/github-action'], - lockFileMaintenance: { enabled: true, schedule: [] }, };