Adding continuous integration
This commit is contained in:
parent
cb11acc428
commit
c34e276225
57
.github/workflows/continuous_integration.yml
vendored
Normal file
57
.github/workflows/continuous_integration.yml
vendored
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
# 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"
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
|
||||||
|
- name: "Install dependencies"
|
||||||
|
run: yarn install
|
||||||
|
working-directory: "front"
|
||||||
|
|
||||||
|
- name: "Build"
|
||||||
|
run: yarn run build
|
||||||
|
working-directory: "front"
|
||||||
|
|
||||||
|
continuous-integration-back:
|
||||||
|
name: "Continuous Integration Back"
|
||||||
|
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout"
|
||||||
|
uses: "actions/checkout@v2.0.0"
|
||||||
|
|
||||||
|
- name: "Setup NodeJS"
|
||||||
|
- uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
|
||||||
|
- name: "Install dependencies"
|
||||||
|
run: yarn install
|
||||||
|
working-directory: "back"
|
||||||
|
|
||||||
|
- name: "Build"
|
||||||
|
run: yarn run tsc
|
||||||
|
working-directory: "back"
|
||||||
|
|
||||||
|
- name: "Lint"
|
||||||
|
run: yarn run lint
|
||||||
|
working-directory: "back"
|
Loading…
Reference in New Issue
Block a user