mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
24 lines
639 B
YAML
24 lines
639 B
YAML
name: Common Server Test
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches-ignore:
|
|
- 'hotfix-*' # excludes hotfix branches
|
|
- 'release'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CI_PIPELINE_ID: ${{github.run_number}}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 18.3.0
|
|
- run: cd Common && npm install
|
|
- run: cd Model && npm install
|
|
- run: cd CommonServer && npm install
|
|
- run: cd CommonServer && bash test-setup.sh
|
|
- run: export $(grep -v '^#' config.env | xargs) && cd CommonServer && rm -rf build && npm run test |