Skip to content
Open
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
22 changes: 20 additions & 2 deletions app/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
variables:
GIT_SUBMODULE_STRATEGY: recursive

name: Run commands on different operating systems
on:
push:
branches: [ githubCI ]
pull_request:
branches: [ main ]

jobs:
Run-self-hosted:
name: Run npm on Ubuntu
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
- run: npm help

stages:
- build
- check
Expand All @@ -22,7 +40,7 @@ Compile:
<<: *only-default
stage: build
needs: []
script: ./gradlew HealthMate:assembleInhouseRelease --no-configuration-cache
script: ./gradlew app:assembledebug --no-configuration-cache
except:
- tags
- main
Expand All @@ -31,7 +49,7 @@ Test:
<<: *only-default
stage: check
needs: []
script: ./gradlew testDebugUnitTest DogBreeds:testInhouseDebug --no-configuration-cache
script: ./gradlew testDebugUnitTest app:testInhouseDebug --no-configuration-cache
artifacts:
name: Tests reports
paths:
Expand Down