diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index b0cab68..eb3d7b5 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -1,6 +1,11 @@ -name: Python package +name: Python Backend -on: [push, pull_request] +on: + push: + paths: + - "kibicara/**" + - "tests/**" + pull_request: jobs: build: diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 0000000..2e48194 --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,37 @@ +name: Angular Frontend + +on: + push: + paths: + - "kibicara-frontend/**" + pull_request: + +jobs: + build: + + runs-on: ubuntu-latest + env: + working-directory: ./kibicara-frontend + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install Packages + run: npm i + working-directory: ${{env.working-directory}} + + - name: Install Angular CLI + run: npm i -g @angular/cli + working-directory: ${{env.working-directory}} + + - name: Run Linter + run: ng lint + working-directory: ${{env.working-directory}}