Showing
1 changed file
with
18 additions
and
7 deletions
| 1 | image: node:14-alpine | 1 | image: node:14-alpine |
| 2 | 2 | ||
| 3 | stages: | 3 | stages: |
| 4 | - - init | ||
| 5 | - - build | ||
| 6 | - test | 4 | - test |
| 5 | + - build | ||
| 6 | + | ||
| 7 | +Test Server: | ||
| 8 | + stage: test | ||
| 9 | + script: | ||
| 10 | + - cd common | ||
| 11 | + - yarn install | ||
| 12 | + - cd ../server | ||
| 13 | + - yarn install | ||
| 14 | + - yarn test | ||
| 7 | 15 | ||
| 8 | Build Server: | 16 | Build Server: |
| 9 | stage: build | 17 | stage: build |
| 10 | - before_script: | 18 | + script: |
| 11 | - cd common | 19 | - cd common |
| 12 | - yarn install | 20 | - yarn install |
| 13 | - cd ../server | 21 | - cd ../server |
| 14 | - yarn install | 22 | - yarn install |
| 15 | - script: | ||
| 16 | - yarn build | 23 | - yarn build |
| 17 | 24 | ||
| 18 | -Test Server: | 25 | +Build Web: |
| 19 | - stage: test | 26 | + stage: build |
| 20 | script: | 27 | script: |
| 21 | - - yarn test | 28 | + - cd common |
| 29 | + - yarn install | ||
| 30 | + - cd ../web | ||
| 31 | + - npm install | ||
| 32 | + - npm build | ... | ... |
-
Please register or login to post a comment