diff --git a/.github/workflows/build-backend.yml b/.github/workflows/build-backend.yml index e5e3bbd..3e5789b 100644 --- a/.github/workflows/build-backend.yml +++ b/.github/workflows/build-backend.yml @@ -26,7 +26,16 @@ jobs: with: token: ${{ secrets.PAT_TOKEN }} - # Authentication via credentials json + - name: Set up Taskfile + uses: arduino/setup-task@v1.0.3 + + - name: Run Lint Check + run: task lint-check + + - name: Run all tests + run: task test + + # Authentication to GCP via credentials json - id: 'auth' uses: 'google-github-actions/auth@v1' with: @@ -34,9 +43,6 @@ jobs: - name: Docker configuration run: gcloud auth configure-docker ${{ env.GAR_LOCATION }}-docker.pkg.dev --quiet - - - name: Set up Taskfile - uses: arduino/setup-task@v1.0.3 - name: Build run: task build-backend-image tag="$GITHUB_SHA" diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml index 52f407c..5bd700d 100644 --- a/.github/workflows/build-frontend.yml +++ b/.github/workflows/build-frontend.yml @@ -26,7 +26,13 @@ jobs: with: token: ${{ secrets.PAT_TOKEN }} - # Authentication via credentials json + - name: Run Lint Check + run: task lint-check + + - name: Run all tests + run: task test + + # Authentication to GCP via credentials json - id: 'auth' uses: 'google-github-actions/auth@v1' with: diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index acda83f..d6310f8 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -4,10 +4,10 @@ name: Python Tests on: - push: - branches: [ "main" ] - paths: - - "applications/**" +# push: +# branches: [ "main" ] +# paths: +# - "applications/**" pull_request: branches: [ "main" ] paths: diff --git a/Taskfile.yaml b/Taskfile.yaml index 9fcd4fd..5ca91ff 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -94,6 +94,21 @@ tasks: cmds: - echo "Tested the Data Analyzer" + test-frontend: + desc: Run tests for the frontend server. +# deps: +# - install-frontend + cmds: + - cd applications/frontend && echo "Tested the frontend" + + test: + desc: Run all tests. + deps: + - test-backend + - test-fetcher + - test-analyzer + - test-frontend + # Infrastructure tasks helm-setup: