2020-04-04 15:55:20 +02:00
|
|
|
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
|
|
|
|
|
|
|
|
name: "Continuous Integration"
|
|
|
|
|
|
|
|
on:
|
2021-04-26 15:14:21 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
2020-04-04 15:55:20 +02:00
|
|
|
|
|
|
|
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"
|
2022-01-03 15:23:28 +01:00
|
|
|
run: yarn run ts-proto && yarn run copy-to-front-ts-proto && yarn run json-copy-to-front
|
2020-09-18 17:51:12 +02:00
|
|
|
working-directory: "messages"
|
|
|
|
|
2021-01-20 17:36:50 +01:00
|
|
|
- name: "Create index.html"
|
|
|
|
run: ./templater.sh
|
|
|
|
working-directory: "front"
|
|
|
|
|
2022-01-24 18:01:00 +01:00
|
|
|
- name: "Generate i18n files"
|
|
|
|
run: yarn run typesafe-i18n
|
|
|
|
working-directory: "front"
|
|
|
|
|
2020-04-04 15:55:20 +02:00
|
|
|
- name: "Build"
|
|
|
|
run: yarn run build
|
2020-04-04 16:02:41 +02:00
|
|
|
env:
|
2021-05-12 11:05:49 +02:00
|
|
|
PUSHER_URL: "//localhost:8080"
|
2021-07-30 14:08:27 +02:00
|
|
|
ADMIN_URL: "//localhost:80"
|
2020-04-04 15:55:20 +02:00
|
|
|
working-directory: "front"
|
|
|
|
|
2021-06-15 18:08:16 +02:00
|
|
|
- name: "Svelte check"
|
|
|
|
run: yarn run svelte-check
|
|
|
|
working-directory: "front"
|
|
|
|
|
2020-04-04 16:16:20 +02:00
|
|
|
- name: "Lint"
|
|
|
|
run: yarn run lint
|
|
|
|
working-directory: "front"
|
|
|
|
|
2021-09-06 14:27:01 +02:00
|
|
|
- name: "Pretty"
|
2021-11-24 15:24:24 +01:00
|
|
|
run: yarn run pretty-check
|
2021-09-06 14:27:01 +02:00
|
|
|
working-directory: "front"
|
|
|
|
|
2020-06-02 10:48:04 +02:00
|
|
|
- name: "Jasmine"
|
|
|
|
run: yarn test
|
|
|
|
working-directory: "front"
|
|
|
|
|
2021-01-18 15:31:07 +01:00
|
|
|
continuous-integration-pusher:
|
|
|
|
name: "Continuous Integration Pusher"
|
|
|
|
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
|
|
uses: "actions/checkout@v2.0.0"
|
|
|
|
|
|
|
|
- name: "Setup NodeJS"
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2021-07-27 16:37:01 +02:00
|
|
|
node-version: '14.x'
|
2021-01-18 15:31:07 +01:00
|
|
|
|
|
|
|
- name: Install Protoc
|
|
|
|
uses: arduino/setup-protoc@v1
|
|
|
|
with:
|
|
|
|
version: '3.x'
|
|
|
|
|
|
|
|
- name: "Install dependencies"
|
|
|
|
run: yarn install
|
|
|
|
working-directory: "pusher"
|
|
|
|
|
|
|
|
- name: "Install messages dependencies"
|
|
|
|
run: yarn install
|
|
|
|
working-directory: "messages"
|
|
|
|
|
|
|
|
- name: "Build proto messages"
|
2021-12-16 16:15:12 +01:00
|
|
|
run: yarn run proto && yarn run copy-to-pusher && yarn run json-copy-to-pusher
|
2021-01-18 15:31:07 +01:00
|
|
|
working-directory: "messages"
|
|
|
|
|
|
|
|
- name: "Build"
|
|
|
|
run: yarn run tsc
|
|
|
|
working-directory: "pusher"
|
|
|
|
|
|
|
|
- name: "Lint"
|
|
|
|
run: yarn run lint
|
|
|
|
working-directory: "pusher"
|
|
|
|
|
|
|
|
- name: "Jasmine"
|
|
|
|
run: yarn test
|
|
|
|
working-directory: "pusher"
|
|
|
|
|
2021-06-23 17:13:16 +02:00
|
|
|
- name: "Prettier"
|
|
|
|
run: yarn run pretty-check
|
|
|
|
working-directory: "pusher"
|
|
|
|
|
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"
|
2020-09-24 11:20:10 +02:00
|
|
|
run: yarn run proto && yarn run copy-to-back
|
2020-09-18 17:51:12 +02:00
|
|
|
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
|
|
|
|
2021-06-23 17:13:16 +02:00
|
|
|
- name: "Prettier"
|
|
|
|
run: yarn run pretty-check
|
|
|
|
working-directory: "back"
|
|
|
|
|
2022-02-18 10:26:36 +01:00
|
|
|
continuous-integration-desktop:
|
|
|
|
name: "Continuous Integration Desktop"
|
|
|
|
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
|
|
uses: "actions/checkout@v2.0.0"
|
|
|
|
|
|
|
|
- name: "Setup NodeJS"
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2022-02-18 10:27:55 +01:00
|
|
|
node-version: '14.x'
|
2022-02-18 10:26:36 +01:00
|
|
|
|
|
|
|
- name: "Install dependencies"
|
|
|
|
run: yarn install --froze-lockfile
|
|
|
|
working-directory: "desktop"
|
|
|
|
|
|
|
|
- name: "Build"
|
|
|
|
run: yarn build
|
|
|
|
working-directory: "desktop"
|
|
|
|
|
|
|
|
- name: "Typecheck"
|
|
|
|
run: yarn typecheck
|
|
|
|
working-directory: "desktop"
|
|
|
|
|
|
|
|
- name: "Lint"
|
|
|
|
run: yarn lint
|
|
|
|
working-directory: "desktop"
|
|
|
|
|
|
|
|
- name: "Jasmine"
|
|
|
|
run: yarn test
|
|
|
|
working-directory: "desktop"
|
|
|
|
|
|
|
|
- name: "Prettier"
|
|
|
|
run: yarn pretty-check
|
|
|
|
working-directory: "desktop"
|
2022-02-20 21:09:15 +01:00
|
|
|
|
|
|
|
continuous-integration-desktop-local-app:
|
|
|
|
name: "Continuous Integration Desktop Local App"
|
|
|
|
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
|
|
|
uses: "actions/checkout@v2.0.0"
|
|
|
|
|
|
|
|
- name: "Setup NodeJS"
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '14.x'
|
|
|
|
|
|
|
|
- name: "Install dependencies"
|
|
|
|
run: yarn install --froze-lockfile
|
|
|
|
working-directory: "desktop/local-app"
|
|
|
|
|
|
|
|
- name: "Build"
|
|
|
|
run: yarn build
|
|
|
|
working-directory: "desktop/local-app"
|
|
|
|
|
|
|
|
- name: "Typecheck"
|
|
|
|
run: yarn check
|
|
|
|
working-directory: "desktop/local-app"
|
|
|
|
|
|
|
|
- name: "Lint"
|
|
|
|
run: yarn lint
|
|
|
|
working-directory: "desktop/local-app"
|
|
|
|
|
|
|
|
- name: "Jasmine"
|
|
|
|
run: yarn test
|
|
|
|
working-directory: "desktop/local-app"
|
|
|
|
|
|
|
|
- name: "Prettier"
|
|
|
|
run: yarn pretty-check
|
|
|
|
working-directory: "desktop/local-app"
|