Skip to content

Commit

Permalink
Tracking pull request to merge release-2.21.0 to master (#2908)
Browse files Browse the repository at this point in the history
* initial commit for 2.21.0

* update pr number

* new knp to allow lcfs backend to access tfrs backend

* fix: null credit offset on no schedule b fix (#2910)

---------

Co-authored-by: Alex Zorkin <[email protected]>
  • Loading branch information
kuanfandevops and AlexZorkin authored Oct 8, 2024
1 parent d7b8189 commit f1432f9
Show file tree
Hide file tree
Showing 6 changed files with 279 additions and 110 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/dev-release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## For each release, the value of name, branches, RELEASE_NAME and PR_NUMBER need to be adjusted accordingly
## For each release, update lib/config.js: version and releaseBranch

name: TFRS Dev release-2.20.0
name: TFRS Dev release-2.21.0

on:
push:
branches: [ release-2.20.0 ]
branches: [release-2.21.0]
paths:
- frontend/**
- backend/**
Expand All @@ -15,35 +15,32 @@ on:
env:
## The pull request number of the Tracking pull request to merge the release branch to main
## Also remember to update the version in .pipeline/lib/config.js
PR_NUMBER: 2894
RELEASE_NAME: release-2.20.0
PR_NUMBER: 2908
RELEASE_NAME: release-2.21.0

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

unit-test:

name: Run Backend Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run coverage report for django tests

- 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:

lint:
name: Linting
runs-on: ubuntu-latest
timeout-minutes: 60
Expand All @@ -52,13 +49,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Frontend Linting
- name: Frontend Linting
continue-on-error: true
run: |
cd frontend
pwd
npm install
npm run lint
npm run lint
- name: Backend linting
uses: github/super-linter/slim@v4
Expand All @@ -71,13 +68,11 @@ jobs:
LOG_LEVEL: WARN

build:

name: Build TFRS on Openshift
runs-on: ubuntu-latest
timeout-minutes: 60

steps:

## it will checkout to /home/runner/work/itvr/itvr
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -96,17 +91,15 @@ jobs:
run: |
cd .pipeline
npm install
npm run build -- --pr=${{ env.PR_NUMBER }} --env=build
npm run build -- --pr=${{ env.PR_NUMBER }} --env=build
deploy-on-dev:

name: Deploy TFRS on Dev
runs-on: ubuntu-latest
timeout-minutes: 240
needs: build

steps:

## it will checkout to /home/runner/work/itvr/itvr
- name: Check out repository
uses: actions/checkout@v3
Expand All @@ -117,11 +110,10 @@ jobs:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
insecure_skip_tls_verify: true
namespace: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-tools
namespace: ${{ secrets.OPENSHIFT_NAMESPACE_PLATE }}-tools

- name: Run deploy
run: |
cd .pipeline
npm install
npm run deploy -- --pr=${{ env.PR_NUMBER }} --env=dev
npm run deploy -- --pr=${{ env.PR_NUMBER }} --env=dev
6 changes: 3 additions & 3 deletions .github/workflows/tfrs-release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## For each release, the value of name, branches, RELEASE_NAME and PR_NUMBER need to be adjusted accordingly
## For each release, update lib/config.js: version and releaseBranch

name: TFRS release-2.20.0
name: TFRS release-2.21.0

on:
workflow_dispatch:
Expand All @@ -10,8 +10,8 @@ on:
env:
## The pull request number of the Tracking pull request to merge the release branch to main
## Also remember to update the version in .pipeline/lib/config.js
PR_NUMBER: 2894
RELEASE_NAME: release-2.20.0
PR_NUMBER: 2908
RELEASE_NAME: release-2.21.0

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
Loading

0 comments on commit f1432f9

Please sign in to comment.