chore: simplify workflows

This commit is contained in:
Michael Kriese 2020-04-28 08:56:36 +02:00
parent 05ac6b546e
commit 36b30fe60f
5 changed files with 62 additions and 39 deletions

17
.github/config.js vendored Normal file
View file

@ -0,0 +1,17 @@
module.exports = {
branchPrefix: 'ga-renovate/',
dryRun: true,
gitAuthor: 'Renovate Bot <bot@renovateapp.com>',
logLevel: 'debug',
onboarding: false,
platform: 'github',
repositories: ['renovatebot/github-action'],
packageRules: [
{
description: 'lockFileMaintenance',
updateTypes: ['lockFileMaintenance'],
enabled: true,
schedule: [],
},
],
};

45
.github/workflows/build.yml vendored Normal file
View file

@ -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'

View file

@ -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 }}

View file

@ -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

View file

@ -6,5 +6,4 @@ module.exports = {
onboarding: false,
platform: 'github',
repositories: ['renovatebot/github-action'],
lockFileMaintenance: { enabled: true, schedule: [] },
};