Skip to content

build(deps): bump cookie, socket.io and express in /demos/web/angular-model-browser #251

build(deps): bump cookie, socket.io and express in /demos/web/angular-model-browser

build(deps): bump cookie, socket.io and express in /demos/web/angular-model-browser #251

name: MPS-CLI_CI
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.MPSCLI_GITHUB_PKG_REGISTRY }}
jobs:
build_mps_cli:
runs-on: ubuntu-latest
env:
DISPLAY: ':99'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup headless environment
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
chmod 777 mps-cli-gradle-plugin/gradlew
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build MPS-CLI and Test
uses: gradle/gradle-build-action@v2
with:
arguments: :plugin:functionalTest --debug
wrapper-cache-enabled: true
dependencies-cache-enabled: true
dependencies-cache-key: gradle/dependency-locks/**
dependencies-cache-exact: true
configuration-cache-enabled: true
build-root-directory: mps-cli-gradle-plugin
- uses: actions/upload-artifact@v3
if: failure()
with:
name: gradle-test-report
path: ./mps-cli-gradle-plugin/plugin/build/reports/
- name: Publish
uses: gradle/gradle-build-action@v2
if: github.event_name == 'push' && github.ref_name == 'main'
with:
arguments: :plugin:publish -Pgpr.user=${{github.actor}} -Pgpr.token=${{ secrets.GITHUB_TOKEN }}
wrapper-cache-enabled: true
dependencies-cache-enabled: true
dependencies-cache-key: gradle/dependency-locks/**
dependencies-cache-exact: true
configuration-cache-enabled: true
build-root-directory: mps-cli-gradle-plugin