Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI - upgrade node to 20 #262

Merged
merged 5 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/search-ui-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ on:
required: true
type: choice
options:
- dev
- test
- sandbox
- prod
- dev
- test
- sandbox
- prod
tagname:
description: "Specify a previous version (git tag) to deploy"
required: false
default: ""

jobs:
search-ui-cd:
uses: bcgov/bcregistry-sre/.github/workflows/ui-cd.yaml@main
uses: bcgov/bcregistry-sre/.github/workflows/ui-cd-node20.yaml@main
with:
environment: ${{ inputs.environment }}
tagname: ${{ inputs.tagname }}
Expand Down
71 changes: 37 additions & 34 deletions .github/workflows/search-ui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
paths:
- "search-ui/**"


defaults:
run:
shell: bash
Expand All @@ -19,7 +18,7 @@ jobs:
if: github.repository == 'bcgov/registries-search'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: "true"

linting:
Expand All @@ -28,55 +27,59 @@ jobs:

strategy:
matrix:
node-version: [16.14.2]
node-version: [20]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}

- name: Install dependencies
run: |
make setup
- name: Linting
run: |
make lint
run: npm install

- name: Lint
run: npm run lint

testing-coverage:
unit-testing:
needs: setup-job
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [16.14.2]
node-version: [20]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}

- name: Install dependencies
run: |
make setup
- name: Test with Jest
id: test
run: |
make test
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# name: codecov-search-ui
# fail_ci_if_error: true
run: npm install

- name: Test
run: npm run test:unit

build-check:
needs: setup-job
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [20]

steps:
- uses: actions/checkout@v3
- name: build to check strictness
id: build
run: |
make build-nc
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm install

- name: Build
run: npm run build
2 changes: 1 addition & 1 deletion search-ui/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
'warn',
{ code: 120, ignoreRegExpLiterals: true, ignoreTrailingComments: true },
],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
"no-console": ["error", { "allow": ["warn", "error", "info"] }],
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'@typescript-eslint/no-explicit-any': 'off',
// 'prettier/prettier': [
Expand Down
23 changes: 0 additions & 23 deletions search-ui/Dockerfile

This file was deleted.

84 changes: 0 additions & 84 deletions search-ui/Makefile

This file was deleted.

60 changes: 0 additions & 60 deletions search-ui/devops/cloudbuild-pr.yaml

This file was deleted.

Loading