mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
chore: simplify workflows and remove commitlint dependency
This commit is contained in:
parent
d5c927a88f
commit
c83ceb88d9
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -1,20 +0,0 @@
|
|||||||
name: build
|
|
||||||
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
cache: npm
|
|
||||||
- uses: google/wireit@setup-github-actions-caching/v1
|
|
||||||
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm run build
|
|
||||||
env:
|
|
||||||
WIREIT_FAILURES: continue
|
|
||||||
6
.github/workflows/commitlint.yml
vendored
6
.github/workflows/commitlint.yml
vendored
@ -7,13 +7,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: npm
|
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm install -g commitlint @commitlint/config-conventional
|
||||||
- run: 'echo "${PR_TITLE}" | npx commitlint'
|
- run: 'echo "${PR_TITLE}" | commitlint -x @commitlint/config-conventional'
|
||||||
env:
|
env:
|
||||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
||||||
|
|||||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: publish
|
name: Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@ -1,8 +1,24 @@
|
|||||||
name: test
|
name: Tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: npm
|
||||||
|
- uses: google/wireit@setup-github-actions-caching/v1
|
||||||
|
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run build
|
||||||
|
env:
|
||||||
|
WIREIT_FAILURES: continue
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|||||||
3267
package-lock.json
generated
3267
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -39,11 +39,9 @@
|
|||||||
"tslib": "^2.4.0"
|
"tslib": "^2.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/config-conventional": "^17.3.0",
|
|
||||||
"@types/jasmine": "^4.0.3",
|
"@types/jasmine": "^4.0.3",
|
||||||
"@web/test-runner": "^0.15.0",
|
"@web/test-runner": "^0.15.0",
|
||||||
"@web/test-runner-playwright": "^0.9.0",
|
"@web/test-runner-playwright": "^0.9.0",
|
||||||
"commitlint": "^17.3.0",
|
|
||||||
"jasmine": "^4.5.0",
|
"jasmine": "^4.5.0",
|
||||||
"sass": "^1.52.3",
|
"sass": "^1.52.3",
|
||||||
"sass-true": "^6.1.0",
|
"sass-true": "^6.1.0",
|
||||||
@ -51,11 +49,6 @@
|
|||||||
"web-test-runner-jasmine": "^0.0.2",
|
"web-test-runner-jasmine": "^0.0.2",
|
||||||
"wireit": "^0.9.0"
|
"wireit": "^0.9.0"
|
||||||
},
|
},
|
||||||
"commitlint": {
|
|
||||||
"extends": [
|
|
||||||
"@commitlint/config-conventional"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"wireit": {
|
"wireit": {
|
||||||
"build": {
|
"build": {
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user