From a11a8d97a7aa11144b42c55698ab6fcf2973c33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Ara=C3=BAjo=20Paes?= Date: Fri, 19 Aug 2022 08:17:49 -0300 Subject: [PATCH] :whale: Creating CI process Every pull request will be validated if there are no syntax errors --- .github/build-backend.yaml | 36 ++++++++++++++++++++++++++++++++++++ .github/build-frontend.yaml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 .github/build-backend.yaml create mode 100644 .github/build-frontend.yaml diff --git a/.github/build-backend.yaml b/.github/build-backend.yaml new file mode 100644 index 0000000..4d22740 --- /dev/null +++ b/.github/build-backend.yaml @@ -0,0 +1,36 @@ +name: Test build backend + +on: + pull_request: + paths: + - "backend/**" + + push: + branches: + - master + paths: + - "backend/**" + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + working-directory: backend + run: npm install + + - run: npm run build + working-directory: backend diff --git a/.github/build-frontend.yaml b/.github/build-frontend.yaml new file mode 100644 index 0000000..1e35a2e --- /dev/null +++ b/.github/build-frontend.yaml @@ -0,0 +1,36 @@ +name: Test build frontend + +on: + pull_request: + paths: + - "frontend/**" + + push: + branches: + - master + paths: + - "frontend/**" + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + working-directory: frontend + run: npm install + + - run: CI=false npm run build + working-directory: frontend