Skip to content

Commit d5723ab

Browse files
authored
Merge pull request #224 from vidavidorra/beta
Beta
2 parents 5bbefce + 0e50d27 commit d5723ab

30 files changed

+20293
-18008
lines changed

.eslintignore

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

.eslintrc.js

Lines changed: 0 additions & 82 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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const config = {
2+
'*.{ts,tsx,js,jsx}': ['xo --fix', () => 'ava'],
3+
'*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}':
4+
'prettier --write',
5+
};
6+
7+
export default config;

.github/workflows/build.yml

Lines changed: 15 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -3,82 +3,36 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
- 'renovate/**'
7-
- 'github-renovate/**'
88
pull_request:
99
jobs:
1010
lint:
11-
runs-on: ubuntu-latest
12-
timeout-minutes: 5
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
16-
- name: Setup node
17-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
18-
with:
19-
node-version: 16
20-
- name: Install project
21-
run: npm ci --ignore-scripts
22-
- name: Lint
23-
run: npm run lint
11+
uses: vidavidorra/.github/.github/workflows/node-lint.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
2412
build:
25-
name: Build (Node.js v${{ matrix.node }})
26-
runs-on: ubuntu-latest
27-
timeout-minutes: 5
13+
name: Build (Node.js ${{ matrix.nodeVersion }})
2814
strategy:
2915
fail-fast: false
3016
matrix:
31-
node: [14, 16]
32-
steps:
33-
- name: Checkout
34-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
35-
- name: Setup node
36-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
37-
with:
38-
node-version: ${{ matrix.node }}
39-
- name: Install project
40-
run: npm ci --ignore-scripts
41-
- name: Build
42-
run: npm run build
17+
nodeVersion: [16, 18, 20]
18+
uses: vidavidorra/.github/.github/workflows/node-build.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
19+
with:
20+
nodeVersion: ${{ matrix.nodeVersion }}
4321
test:
4422
name: Test (Node.js v${{ matrix.node }})
45-
runs-on: ubuntu-latest
46-
timeout-minutes: 5
4723
strategy:
4824
fail-fast: false
4925
matrix:
50-
node: [14, 16]
51-
steps:
52-
- name: Checkout
53-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
54-
- name: Setup node
55-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
56-
with:
57-
node-version: ${{ matrix.node }}
58-
- name: Install project
59-
run: npm ci --ignore-scripts
60-
- name: Test
61-
run: npm run test:ci
26+
node: [16, 18, 20]
27+
uses: vidavidorra/.github/.github/workflows/node-test.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1
28+
with:
29+
nodeVersion: ${{ matrix.node }}
6230
code-coverage:
31+
name: Test coverage
6332
needs: [lint, build, test]
64-
runs-on: ubuntu-latest
65-
timeout-minutes: 5
66-
steps:
67-
- name: Checkout
68-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
69-
- name: Setup node
70-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
71-
with:
72-
node-version: 16
73-
- name: Install project
74-
run: npm ci --ignore-scripts
75-
- name: Test
76-
run: npm run test:ci
77-
- name: Upload coverage to Codecov
78-
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
79-
with:
80-
token: ${{ secrets.CODECOV_TOKEN }}
81-
file: ./coverage/cobertura-coverage.xml
33+
uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@d1af2b300d80b7abc1bda186aa29df55573af9ea # v2.1.0
34+
secrets:
35+
codecovToken: ${{ secrets.CODECOV_TOKEN }}
8236
release:
8337
needs: [lint, build, test, code-coverage]
8438
runs-on: ubuntu-latest

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

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,9 @@ on:
33
push:
44
branches:
55
- main
6+
- beta
67
- 'renovate/**'
7-
- 'github-renovate/**'
88
pull_request:
99
jobs:
10-
commitlint:
11-
runs-on: ubuntu-latest
12-
timeout-minutes: 5
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
16-
with:
17-
fetch-depth: 0
18-
- name: Lint commit messages
19-
uses: wagoid/commitlint-github-action@456526eec71276a59e74aafdfe06a9632ac2eee1 # v5.4.1
20-
with:
21-
token: ${{ secrets.GITHUB_TOKEN }}
10+
lint-commit-messages:
11+
uses: vidavidorra/.github/.github/workflows/lint-commit-messages.yml@831cdfeaf21957af495b3d518c1a877d5ffd3253 # v2.1.1

.lintstagedrc.js

Lines changed: 0 additions & 11 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)