generated from bcgov/bcrs-template-ui
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - updated branch in codecov.yaml - deleted obsolete Makefile - app version = 7.4.0 - added scripts to package.json - updated CD script - updated CI script * - fixed Codecov branch - removed extra space --------- Co-authored-by: Severin Beauvais <[email protected]>
- Loading branch information
1 parent
5cc4b75
commit a0a37f8
Showing
6 changed files
with
31 additions
and
167 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 FILINGS UI CD | ||
name: Business Filings 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-filings-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-filings-ui" | ||
secrets: | ||
APP_NAME: "business-filings" | ||
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 FILINGS UI CI | ||
name: Business Filings 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-filings-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-filings | ||
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-filings-ui-ci: | ||
uses: bcgov/bcregistry-sre/.github/workflows/frontend-ci.yaml@main | ||
with: | ||
node_version: "20.5.1" | ||
app_name: "business-filings-ui" |
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,6 +1,6 @@ | ||
codecov: | ||
require_ci_to_pass: true | ||
branch: master | ||
branch: main | ||
max_report_age: false | ||
|
||
coverage: | ||
|
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