Skip to content

Commit

Permalink
Merge pull request #713 from bcgov/develop
Browse files Browse the repository at this point in the history
Deployment PR - 291
  • Loading branch information
dhaselhan authored Jan 22, 2024
2 parents dcc1e5d + 75009a5 commit 5d0d034
Show file tree
Hide file tree
Showing 2,974 changed files with 195,310 additions and 87,727 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}
- run: npm ci --legacy-peer-deps
- run: npm ci
- run: npm run build
- run: npm run test:ci
test-portal-frontend:
Expand All @@ -29,8 +29,8 @@ jobs:
working-directory: portal-frontend
strategy:
matrix:
platform: [ ubuntu-latest ]
node: [ "18" ]
platform: [ubuntu-latest]
node: ["18"]
name: Portal Frontend Tests - ${{ matrix.node }}/${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -48,7 +48,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest]
node: ["18"]
node: ["20"]
name: API Tests - ${{ matrix.node }}/${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest]
node: ["18"]
node: ["20"]
name: Coverage Report ALCS Frontend - ${{ matrix.node }}/${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}
- run: npm install --legacy-peer-deps
- run: npm install
- run: npm run build
- run: npm run test:cov
- if: matrix.node == '18'
- if: matrix.node == '20'
uses: actions/upload-artifact@v3
with:
name: coverage-alcs-frontend
Expand All @@ -35,8 +35,8 @@ jobs:
working-directory: portal-frontend
strategy:
matrix:
platform: [ ubuntu-latest ]
node: [ "18" ]
platform: [ubuntu-latest]
node: ["20"]
name: Coverage Report Portal Frontend - ${{ matrix.node }}/${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -47,7 +47,7 @@ jobs:
- run: npm install
- run: npm run build
- run: npm run test:cov
- if: matrix.node == '18'
- if: matrix.node == '20'
uses: actions/upload-artifact@v3
with:
name: coverage-portal-frontend
Expand All @@ -61,7 +61,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest]
node: ["18"]
node: ["20"]
name: Coverage Report API - ${{ matrix.node }}/${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -72,7 +72,7 @@ jobs:
- run: npm install
- run: npm run build
- run: npm run test:cov
- if: matrix.node == '18'
- if: matrix.node == '20'
uses: actions/upload-artifact@v3
with:
name: coverage-api
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

This project contains the frontend and backend for the ALCS used for tracking various permits and other ALC related documents

## Getting Help or Reporting an Issue
## Getting Help or Reporting an Issue

To report bugs/issues/features requests, please file an [issue](https://github.com/bcgov/alcs/issues).

Expand All @@ -23,3 +23,11 @@ To report bugs/issues/features requests, please file an [issue](https://github.c
- [SchemaSpy - ALCS](https://bcgov.github.io/alcs/schemaspy/alcs/index.html)
- [SchemaSpy - OATS](https://bcgov.github.io/alcs/schemaspy/oats/index.html)
- [One time Jobs](./docs/jobs.md)

## Run dev setup
- [Run ALCS Frontend](./alcs-frontend/README.md)
- [Run Portal Frontend Readme](./portal-frontend/README.md)
- [Run Services](./services/README.md)
- [Setup database](./services/README.md)
- Acquire latest development.json from some developer on the team
- Run docker - `docker compose up`
2 changes: 1 addition & 1 deletion alcs-frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###### Install dependencies only when needed ######
FROM node:18.12-alpine AS build
FROM node:20-alpine AS build

# Make /app as working directory
WORKDIR /app
Expand Down
5 changes: 3 additions & 2 deletions alcs-frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.5.

## Development server
## Run alcs

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
Run `npm install --legacy-peer-deps`
Run `npm run start`

## Code scaffolding

Expand Down
46 changes: 12 additions & 34 deletions alcs-frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,10 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets",
"src/maintenance.html"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets", "src/maintenance.html"],
"styles": ["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "src/styles.scss"],
"stylePreprocessorOptions": {
"includePaths": [
"node_modules"
]
"includePaths": ["node_modules"]
},
"scripts": []
},
Expand Down Expand Up @@ -99,40 +90,27 @@
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"polyfills": [
"src/polyfills.ts"
],
"polyfills": ["src/polyfills.ts"],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": [
"scss"
],
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.scss"
],
"scripts": []
"inlineStyleLanguage": ["scss"],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "src/styles.scss"],
"scripts": [],
"detectOpenHandles": true,
"forceExit": true
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
}
}
}
},
"cli": {
"analytics": "d29c8019-b84b-4fdc-9690-1ee8ea441897",
"schematicCollections": [
"@angular-eslint/schematics"
]
"schematicCollections": ["@angular-eslint/schematics"]
}
}
1 change: 0 additions & 1 deletion alcs-frontend/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
preset: 'jest-preset-angular',
moduleDirectories: ['node_modules', 'src'],
globalSetup: 'jest-preset-angular/global-setup',
coverageReporters: [
[
'lcov',
Expand Down
Loading

0 comments on commit 5d0d034

Please sign in to comment.