Skip to content

Commit f5d6016

Browse files
authored
Merge pull request #203 from vidavidorra/beta
2 parents 0850ccd + 8d14d1f commit f5d6016

15 files changed

+245
-218
lines changed

.eslintignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npx --no-install lint-staged
4+
npx --no-install lint-staged --config .github/lint-staged.js

.github/lint-staged.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
'*.{ts,tsx,js,jsx}': [
3+
'prettier --write',
4+
'npm run lint-es:file:fix',
5+
() => 'npm run test',
6+
],
7+
'*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}':
8+
'prettier --write',
9+
};

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"description": "Disable updates for aliased commitlint packages with a final version",
77
"packagePatterns": [
8-
"^@commitlint/(lint|load)\\-(9|10|11|12|13|14|15)\\.x"
8+
"^@commitlint/(lint|load)\\-(9|10|11|12|13|14|15|16)\\.x"
99
],
1010
"depTypeList": ["devDependencies"],
1111
"enabled": false

.github/workflows/build.yml

Lines changed: 14 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,70 +3,36 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
- 'renovate/**'
7-
- 'github-renovate/**'
88
pull_request:
99
jobs:
1010
lint:
1111
uses: vidavidorra/.github/.github/workflows/node-lint.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
1212
build:
13-
name: Build (Node.js v${{ matrix.node }})
14-
runs-on: ubuntu-latest
15-
timeout-minutes: 5
13+
name: Build (Node.js ${{ matrix.nodeVersion }})
1614
strategy:
1715
fail-fast: false
1816
matrix:
19-
node: [12, 14, 16]
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
23-
- name: Setup node
24-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
25-
with:
26-
node-version: ${{ matrix.node }}
27-
- name: Install project
28-
run: npm ci --ignore-scripts
29-
- name: Build
30-
run: npm run build
17+
nodeVersion: [16, 18, 19]
18+
uses: vidavidorra/.github/.github/workflows/node-build.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
19+
with:
20+
nodeVersion: ${{ matrix.nodeVersion }}
3121
test:
3222
name: Test (Node.js v${{ matrix.node }})
33-
runs-on: ubuntu-latest
34-
timeout-minutes: 5
3523
strategy:
3624
fail-fast: false
3725
matrix:
38-
node: [12, 14, 16]
39-
steps:
40-
- name: Checkout
41-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
42-
- name: Setup node
43-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
44-
with:
45-
node-version: ${{ matrix.node }}
46-
- name: Install project
47-
run: npm ci --ignore-scripts
48-
- name: Test
49-
run: npm test
26+
node: [16, 18, 19]
27+
uses: vidavidorra/.github/.github/workflows/node-test.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
28+
with:
29+
nodeVersion: ${{ matrix.node }}
5030
code-coverage:
31+
name: Test coverage
5132
needs: [lint, build, test]
52-
runs-on: ubuntu-latest
53-
timeout-minutes: 5
54-
steps:
55-
- name: Checkout
56-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
57-
- name: Setup node
58-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
59-
with:
60-
node-version: 14
61-
- name: Install project
62-
run: npm ci --ignore-scripts
63-
- name: Test
64-
run: npm test
65-
- name: Upload coverage to Codecov
66-
uses: codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865 # v3.1.2
67-
with:
68-
token: ${{ secrets.CODECOV_TOKEN }}
69-
file: ./coverage/cobertura-coverage.xml
33+
uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@v2.1.0
34+
secrets:
35+
codecovToken: ${{ secrets.CODECOV_TOKEN }}
7036
release:
7137
needs: [lint, build, test, code-coverage]
7238
runs-on: ubuntu-latest

.github/workflows/lint-commit-messages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
- 'renovate/**'
7-
- 'github-renovate/**'
88
pull_request:
99
jobs:
1010
lint-commit-messages:

.lintstagedrc.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

.prettierrc.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

.releaserc.js

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)