mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-16 17:02:36 +00:00
chore(ci): refactor build (#29)
* chore: simplify workflows * chore: only build on master and renovate breanches * chore: rename jobs * chore: cancel previous builds * chore: testing * chore: update config * chore: add tests * chore: update renovate * chore: simplify entrypoint * chore: pass to default entrypoint * chore: include forks * fix: wrong home * chore: update config * fix: set renovate token in command rather than exporting Co-authored-by: Jeroen de Bruijn <vidavidorra+jdbruijn@gmail.com>
This commit is contained in:
parent
d11b5f6a7e
commit
b95ce7668b
7 changed files with 120 additions and 45 deletions
68
.github/workflows/build.yml
vendored
Normal file
68
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- 'renovate/**'
|
||||
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
cleanup:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- name: github-cleanup
|
||||
uses: renovatebot/internal-tools@v0
|
||||
continue-on-error: true
|
||||
with:
|
||||
command: github-cleanup
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
commitlint:
|
||||
needs: [cleanup]
|
||||
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:
|
||||
needs: [cleanup]
|
||||
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
|
||||
|
||||
e2e:
|
||||
needs: [cleanup]
|
||||
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, e2e]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo 'Dummy'
|
||||
18
.github/workflows/lint-commit-messages.yml
vendored
18
.github/workflows/lint-commit-messages.yml
vendored
|
|
@ -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 }}
|
||||
20
.github/workflows/lint.yml
vendored
20
.github/workflows/lint.yml
vendored
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue