-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- app version = 5.13.0 - added scripts to package.json - updated CD script - updated CI script Co-authored-by: Severin Beauvais <[email protected]>
- Loading branch information
1 parent
3ffa8dd
commit 967cd80
Showing
5 changed files
with
29 additions
and
165 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 |
---|---|---|
@@ -1,32 +1,29 @@ | ||
name: BUSINESS CREATE UI CD | ||
name: Business Create UI CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature* | ||
- hotfix* | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
description: "Environment" | ||
target: | ||
description: "Deploy To" | ||
required: true | ||
type: choice | ||
options: | ||
- dev | ||
- test | ||
- sandbox | ||
- prod | ||
tagname: | ||
description: "Specify a previous version (git tag) to deploy" | ||
required: false | ||
default: "" | ||
|
||
jobs: | ||
business-create-ui-cd: | ||
uses: bcgov/bcregistry-sre/.github/workflows/ui-cd-node20.yaml@main | ||
uses: bcgov/bcregistry-sre/.github/workflows/frontend-cd.yaml@main | ||
with: | ||
environment: ${{ inputs.environment }} | ||
tagname: ${{ inputs.tagname }} | ||
target: ${{ inputs.target }} | ||
app_name: "business-create-ui" | ||
secrets: | ||
APP_NAME: "business-create" | ||
OP_CONNECT_URL: ${{ secrets.OP_CONNECT_URL }} | ||
OP_CONNECT_TOKEN: ${{ secrets.OP_CONNECT_TOKEN }} | ||
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }} | ||
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }} |
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 |
---|---|---|
@@ -1,79 +1,19 @@ | ||
name: BUSINESS CREATE UI CI | ||
name: Business Create UI CI | ||
|
||
on: | ||
pull_request: | ||
types: [assigned, synchronize] | ||
branches: | ||
- main | ||
- feature* | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
setup-job: | ||
runs-on: ubuntu-20.04 | ||
|
||
if: github.repository == 'bcgov/business-create-ui' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: "true" | ||
|
||
linting: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.5.1] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: | | ||
make setup | ||
- name: Linting | ||
run: | | ||
make lint | ||
testing-coverage: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.5.1] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: | | ||
make setup | ||
- name: Test with Vitest | ||
id: test | ||
run: | | ||
make test | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
name: codecov-business-create | ||
fail_ci_if_error: false | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
build-check: | ||
needs: setup-job | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build to check strictness | ||
id: build | ||
run: | | ||
make build-nc | ||
business-create-ui-ci: | ||
uses: bcgov/bcregistry-sre/.github/workflows/frontend-ci.yaml@main | ||
with: | ||
node_version: "20.5.1" | ||
app_name: "business-create-ui" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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