mirror of
https://github.com/uetchy/namae.git
synced 2025-03-16 20:20:38 +09:00
chore(ci): use yarn workspaces
This commit is contained in:
parent
4a7687eafe
commit
d8658d50a2
20
.github/workflows/api.yml
vendored
20
.github/workflows/api.yml
vendored
@ -1,20 +0,0 @@
|
||||
name: API
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- api/*
|
||||
pull_request:
|
||||
paths:
|
||||
- api/*
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-node@master
|
||||
- uses: actions/checkout@master
|
||||
- run: yarn --cwd api install
|
||||
- run: yarn --cwd api test
|
||||
- run: cat ./api/coverage/lcov.info | npx codacy-coverage
|
||||
env:
|
||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
@ -1,11 +1,5 @@
|
||||
name: Web
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- web/*
|
||||
pull_request:
|
||||
paths:
|
||||
- web/*
|
||||
name: Test
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
@ -14,12 +8,12 @@ jobs:
|
||||
- uses: actions/setup-node@master
|
||||
- uses: actions/checkout@master
|
||||
- name: Install dependencies
|
||||
run: yarn --cwd web install
|
||||
run: yarn install
|
||||
- name: Test
|
||||
run: yarn --cwd web test
|
||||
env:
|
||||
CI: true
|
||||
run: yarn test
|
||||
- name: Upload coverage
|
||||
run: cat ./web/coverage/lcov.info | npx codacy-coverage
|
||||
run: |
|
||||
cat ./api/coverage/lcov.info | yarn codacy-coverage
|
||||
cat ./web/coverage/lcov.info | yarn codacy-coverage
|
||||
env:
|
||||
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
@ -1,7 +1,6 @@
|
||||
# namae
|
||||
|
||||
[](https://github.com/uetchy/namae/actions)
|
||||
[](https://github.com/uetchy/namae/actions)
|
||||
[](https://github.com/uetchy/namae/actions)
|
||||
[](https://www.codacy.com/manual/uetchy/namae?utm_source=github.com&utm_medium=referral&utm_content=uetchy/namae&utm_campaign=Badge_Grade)
|
||||
[](https://lgtm.com/projects/g/uetchy/namae/alerts/)
|
||||
|
||||
|
15
package.json
15
package.json
@ -3,25 +3,28 @@
|
||||
"description": "namae saves your time searching around registries and checking if the desired name is ready for use.",
|
||||
"scripts": {
|
||||
"dev": " yarn start",
|
||||
"postinstall": "yarn --cwd web && yarn --cwd api",
|
||||
"ship": "now",
|
||||
"start": "now dev",
|
||||
"test": "CI=true yarn --cwd web test && yarn --cwd api test"
|
||||
"test": "CI=true yarn workspaces run test"
|
||||
},
|
||||
"dependencies": {
|
||||
"now": "^16.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"codacy-coverage": "^3.4.0",
|
||||
"husky": "^3.1.0",
|
||||
"prettier": "^1.19.1",
|
||||
"pretty-quick": "^2.0.1"
|
||||
},
|
||||
"author": "Yasuaki Uechi <y@uechi.io> (https://uechi.io/)",
|
||||
"license": "Apache-2.0",
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "pretty-quick --staged"
|
||||
}
|
||||
},
|
||||
"private": true
|
||||
"author": "Yasuaki Uechi <y@uechi.io> (https://uechi.io/)",
|
||||
"license": "Apache-2.0",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"web",
|
||||
"api"
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user