-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fec601f
commit 2c796da
Showing
1 changed file
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,57 +21,57 @@ concurrency: | |
|
||
jobs: | ||
|
||
# unit-test: | ||
unit-test: | ||
|
||
# name: Run Backend Unit Tests | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 60 | ||
name: Run Backend Unit Tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
|
||
# steps: | ||
# - name: Checkout | ||
# uses: actions/[email protected] | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
# - name: Run coverage report for django tests | ||
# uses: kuanfandevops/django-test-action@itvr-django-test | ||
# continue-on-error: true | ||
# with: | ||
# settings-dir-path: "backend/api" | ||
# requirements-file: "backend/requirements.txt" | ||
# managepy-dir: backend | ||
- name: Run coverage report for django tests | ||
uses: kuanfandevops/django-test-action@itvr-django-test | ||
continue-on-error: true | ||
with: | ||
settings-dir-path: "backend/api" | ||
requirements-file: "backend/requirements.txt" | ||
managepy-dir: backend | ||
|
||
# lint: | ||
|
||
# name: Linting | ||
# runs-on: ubuntu-latest | ||
# timeout-minutes: 60 | ||
|
||
# steps: | ||
# - name: Checkout | ||
# uses: actions/[email protected] | ||
|
||
# - name: Frontend Linting | ||
# continue-on-error: true | ||
# run: | | ||
# cd frontend | ||
# pwd | ||
# npm install | ||
# npm run lint | ||
|
||
# - name: Backend linting | ||
# uses: github/super-linter/slim@v4 | ||
# continue-on-error: true | ||
# env: | ||
# DEFAULT_BRANCH: ${{ github.ref_name }} | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# FILTER_REGEX_INCLUDE: .*backend/.*.py | ||
# VALIDATE_PYTHON_PYLINT: true | ||
# LOG_LEVEL: WARN | ||
lint: | ||
|
||
name: Linting | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Frontend Linting | ||
continue-on-error: true | ||
run: | | ||
cd frontend | ||
pwd | ||
npm install | ||
npm run lint | ||
- name: Backend linting | ||
uses: github/super-linter/slim@v4 | ||
continue-on-error: true | ||
env: | ||
DEFAULT_BRANCH: ${{ github.ref_name }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
FILTER_REGEX_INCLUDE: .*backend/.*.py | ||
VALIDATE_PYTHON_PYLINT: true | ||
LOG_LEVEL: WARN | ||
|
||
# when build branch, the suffix sample is -main-release-jan-2024 | ||
# the checkout-ref sample is main-release-jan-2024 | ||
build: | ||
name: Build | ||
# needs: [unit-test, lint] | ||
needs: [unit-test, lint] | ||
uses: ./.github/workflows/build-template.yaml | ||
with: | ||
suffix: -${{ github.ref_name }} | ||
|