-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1496 from rodekruis/wip.email-multi-event
Wip.email multi event
- Loading branch information
Showing
199 changed files
with
4,580 additions
and
2,276 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,109 +1,109 @@ | ||
name: "Continuous Integration for IBF" | ||
name: 'Continuous Integration for IBF' | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
paths-ignore: | ||
- "./package.json" | ||
- "./COMMITLOG.md" | ||
pull_request: | ||
branches: [master] | ||
push: | ||
branches: [master] | ||
paths-ignore: | ||
- './package.json' | ||
- './COMMITLOG.md' | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
detect-changes: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
ibf-api-service: ${{ steps.filter.outputs.ibf-api-service }} | ||
ibf-dashboard: ${{ steps.filter.outputs.ibf-dashboard }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
ibf-api-service: | ||
- "services/API-service/**" | ||
ibf-dashboard: | ||
- "interfaces/IBF-dashboard/**" | ||
ibf-api-service: | ||
needs: detect-changes | ||
if: ${{ needs.detect-changes.outputs.ibf-api-service == 'true' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
detect-changes: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
ibf-api-service: ${{ steps.filter.outputs.ibf-api-service }} | ||
ibf-dashboard: ${{ steps.filter.outputs.ibf-dashboard }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
ibf-api-service: | ||
- "services/API-service/**" | ||
ibf-dashboard: | ||
- "interfaces/IBF-dashboard/**" | ||
ibf-api-service: | ||
needs: detect-changes | ||
if: ${{ needs.detect-changes.outputs.ibf-api-service == 'true' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
SECRET: ${{ secrets.SECRET }} | ||
MC_API: ${{ secrets.MC_API }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [17.x] | ||
|
||
defaults: | ||
run: | ||
working-directory: 'services/API-service' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci --no-audit | ||
- run: npm run lint | ||
- run: npm test | ||
- run: docker build . --file Dockerfile --tag | ||
rodekruis/ibf-api-service:$(date +%s) | ||
|
||
ibf-dashboard: | ||
needs: detect-changes | ||
if: ${{ needs.detect-changes.outputs.ibf-dashboard == 'true' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
|
||
defaults: | ||
run: | ||
working-directory: 'interfaces/IBF-dashboard' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci --no-audit | ||
- run: npm test | ||
- run: docker build . --file Dockerfile --tag | ||
rodekruis/ibf-dashboard:$(date +%s) | ||
|
||
bump-version: | ||
needs: [ibf-api-service, ibf-dashboard] | ||
if: | | ||
always() && | ||
github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Wait for previous workflow to complete | ||
uses: softprops/turnstyle@v1 | ||
with: | ||
abort-after-seconds: 1800 | ||
env: | ||
SECRET: ${{ secrets.SECRET }} | ||
MC_API: ${{ secrets.MC_API }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
|
||
defaults: | ||
run: | ||
working-directory: "services/API-service" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci --no-audit | ||
- run: npm run lint | ||
- run: npm test | ||
- run: docker build . --file Dockerfile --tag | ||
rodekruis/ibf-api-service:$(date +%s) | ||
|
||
ibf-dashboard: | ||
needs: detect-changes | ||
if: ${{ needs.detect-changes.outputs.ibf-dashboard == 'true' }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
|
||
defaults: | ||
run: | ||
working-directory: "interfaces/IBF-dashboard" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm ci --no-audit | ||
- run: npm test | ||
- run: docker build . --file Dockerfile --tag | ||
rodekruis/ibf-dashboard:$(date +%s) | ||
|
||
bump-version: | ||
needs: [ibf-api-service, ibf-dashboard] | ||
if: | | ||
always() && | ||
github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Wait for previous workflow to complete | ||
uses: softprops/turnstyle@v1 | ||
with: | ||
abort-after-seconds: 1800 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Bump version and push tag | ||
uses: TriPSs/conventional-changelog-action@v3 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
git-message: "chore(release): {version}" | ||
release-count: 10 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Bump version and push tag | ||
uses: TriPSs/conventional-changelog-action@v3 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
git-message: 'chore(release): {version}' | ||
release-count: 10 |
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 |
---|---|---|
|
@@ -3,6 +3,5 @@ | |
"trailingComma": "all", | ||
"singleQuote": true, | ||
"printWidth": 80, | ||
"no-parameter-properties": true, | ||
"tabWidth": 2 | ||
} |
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
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
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,5 +1,4 @@ | ||
# IDE / Editors | ||
.vscode | ||
.idea | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
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 +1 @@ | ||
v10.15.3 | ||
v17.9.1 |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated files | ||
dist | ||
coverage | ||
www | ||
|
||
|
||
# External code | ||
node_modules | ||
|
||
|
||
# Raster-files | ||
geoserver-volume/raster-files/* | ||
!geoserver-volume/raster-files/README.md | ||
|
||
|
||
# certificates | ||
cert/ |
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
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
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,3 +1,5 @@ | ||
import { DataSource, DataSourceOptions } from 'typeorm'; | ||
|
||
import { ORMConfig } from './ormconfig'; | ||
|
||
export const AppDataSource = new DataSource(ORMConfig as DataSourceOptions); |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* @type {import('@jest/types').Config.InitialOptions} | ||
*/ | ||
module.exports = { | ||
moduleFileExtensions: ['js', 'ts'], | ||
transform: { | ||
'^.+\\.ts?$': ['ts-jest', { tsconfig: '<rootDir>/test/tsconfig.json' }], | ||
}, | ||
rootDir: '.', | ||
testMatch: ['<rootDir>/test/**/*.test.ts'], | ||
coverageReporters: ['json', 'lcov'], | ||
modulePathIgnorePatterns: ['<rootDir>/dist/'], | ||
testTimeout: 30_000, | ||
verbose: true, | ||
reporters: ['default'], | ||
}; |
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
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
Oops, something went wrong.