mirror of
https://github.com/uetchy/namae.git
synced 2025-09-15 20:06:39 +09:00
chore(ci): use yarn workspaces
This commit is contained in:
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 }}
|
Reference in New Issue
Block a user