From c34e276225808fb5e9c4ab18cd8ae07b086b0ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Sat, 4 Apr 2020 15:55:20 +0200 Subject: [PATCH] Adding continuous integration --- .github/workflows/continuous_integration.yml | 57 ++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/continuous_integration.yml diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml new file mode 100644 index 00000000..57db8f2a --- /dev/null +++ b/.github/workflows/continuous_integration.yml @@ -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"