-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (62 loc) · 1.8 KB
/
renovate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: "🤖 renovate"
on:
push:
branches:
- renovate/**
paths:
- ".github/workflows/renovate.yml"
- "package.json"
- "yarn.lock"
env:
NODE_ENV: "development"
RUNTIME_ENV: "main"
jobs:
build:
name: Build
runs-on: ubuntu-22.04
timeout-minutes: 15
strategy:
matrix:
version: [16, 18, 20]
os: [ubuntu-latest]
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.version }}
- name: Install depencencies
run: yarn install
- name: Build
run: yarn build
# @todo: Figure out why we would need this
- name: Fix - Link package
run: |
yarn link
# @todo: Why would this be needed?
- name: Fix - Executable permissions
run: |
chmod +x ./lib/bin.js
- name: Fix - Delete current config
run: |
rm husky-hooks.config.js
- name: Test - Command 'create-config'
run: |
npx @jeliasson/husky-hooks create-config
- name: Test - Command 'create-config --force'
run: |
npx @jeliasson/husky-hooks create-config --force
- name: Fix - Update protectedBranches to be []
run: |
cp husky-hooks.config.js husky-hooks.config.js.bak && \
cat husky-hooks.config.js.bak | sed 's/.*protectedBranches.*/\ protectedBranches\:\ [],/' > husky-hooks.config.js
- name: Debug - Display config
run: |
cat husky-hooks.config.js
- name: Test - 'pre-commit' hooks
run: |
npx @jeliasson/husky-hooks pre-commit
- name: Test - 'pre-push' hooks
run: |
npx @jeliasson/husky-hooks pre-push