1
0
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:
uetchy 2019-12-23 23:01:33 +09:00
parent 4a7687eafe
commit d8658d50a2
5 changed files with 11610 additions and 66 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

@ -1,7 +1,6 @@
# namae
[![Actions Status](https://github.com/uetchy/namae/workflows/API/badge.svg)](https://github.com/uetchy/namae/actions)
[![Actions Status](https://github.com/uetchy/namae/workflows/Web/badge.svg)](https://github.com/uetchy/namae/actions)
[![Actions Status](https://github.com/uetchy/namae/workflows/Test/badge.svg)](https://github.com/uetchy/namae/actions)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/0b8abd28e8c04affb2aac6d907ffa149)](https://www.codacy.com/manual/uetchy/namae?utm_source=github.com&utm_medium=referral&utm_content=uetchy/namae&utm_campaign=Badge_Grade)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/uetchy/namae.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/uetchy/namae/alerts/)

View File

@ -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"
]
}

11618
yarn.lock

File diff suppressed because it is too large Load Diff