workadventure/.github/workflows/continuous_integration.yml

99 lines
2.1 KiB
YAML
Raw Normal View History

2020-04-04 15:55:20 +02:00
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Continuous Integration"
on:
- "pull_request"
- "push"
jobs:
continuous-integration-front:
name: "Continuous Integration Front"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2.0.0"
- name: "Setup NodeJS"
2020-04-04 15:58:59 +02:00
uses: actions/setup-node@v1
2020-04-04 15:55:20 +02:00
with:
2020-09-18 18:01:36 +02:00
node-version: '14.x'
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
2020-04-04 15:55:20 +02:00
- name: "Install dependencies"
run: yarn install
working-directory: "front"
2020-09-18 17:47:18 +02:00
- name: "Install messages dependencies"
run: yarn install
working-directory: "messages"
2020-09-18 17:51:12 +02:00
- name: "Build proto messages"
run: yarn run proto
working-directory: "messages"
2020-04-04 15:55:20 +02:00
- name: "Build"
run: yarn run build
2020-04-04 16:02:41 +02:00
env:
2020-06-25 10:32:47 +02:00
API_URL: "localhost:8080"
2020-04-04 15:55:20 +02:00
working-directory: "front"
2020-04-04 16:16:20 +02:00
- name: "Lint"
run: yarn run lint
working-directory: "front"
- name: "Jasmine"
run: yarn test
working-directory: "front"
2020-04-04 15:55:20 +02:00
continuous-integration-back:
name: "Continuous Integration Back"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2.0.0"
- name: "Setup NodeJS"
2020-04-04 15:58:59 +02:00
uses: actions/setup-node@v1
2020-04-04 15:55:20 +02:00
with:
node-version: '12.x'
2020-09-18 18:01:36 +02:00
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
2020-04-04 15:55:20 +02:00
- name: "Install dependencies"
run: yarn install
working-directory: "back"
2020-09-18 17:47:18 +02:00
- name: "Install messages dependencies"
run: yarn install
working-directory: "messages"
2020-09-18 17:51:12 +02:00
- name: "Build proto messages"
run: yarn run proto
working-directory: "messages"
2020-04-04 15:55:20 +02:00
- name: "Build"
run: yarn run tsc
working-directory: "back"
- name: "Lint"
run: yarn run lint
working-directory: "back"
2020-04-06 15:48:19 +02:00
- name: "Jasmine"
2020-04-06 17:59:35 +02:00
run: yarn test
working-directory: "back"
2020-04-14 20:16:51 +02:00