add workflows

This commit is contained in:
Simon Larsen 2022-08-03 20:24:56 +01:00
parent 40f0a7ed6f
commit f5ea657c4d
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 42 additions and 0 deletions

21
.github/workflows/compile.model.yaml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Compile Model
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*'
- 'release'
- 'staging-release'
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
check-latest: true
- run: cd Common && npm install
- run: cd Model && npm install && npm run compile

21
.github/workflows/test.model.yaml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Model Test
on:
pull_request:
push:
branches-ignore:
- 'hotfix-*' # excludes hotfix branches
- 'release'
- 'staging-release'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
check-latest: true
- run: cd Common && npm install
- run: cd Model && npm install && npm run test