Skip to content

Release 1.3.0

Release 1.3.0 #486

Workflow file for this run

on:
pull_request:
paths:
- '**.js'
- '**.yaml'
- '!config/**'
- 'package.json'
- 'package-lock.json'
- '!.github/workflows/pr-php.yaml'
name: Review JS
jobs:
engine-coding-standards:
name: Engine coding standards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: install
working-directory: engine
run: npm install
- name: JS coding standards
working-directory: engine
run: npm run check-coding-standards
engine-tests:
name: Engine tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: install
working-directory: engine
run: npm install
- name: 'install plugin: bus'
working-directory: engine/plugins/bus
run: npm install --production
- name: 'install plugin: client'
working-directory: engine/plugins/client
run: npm install --production
- name: 'install plugin: config'
working-directory: engine/plugins/config
run: npm install --production
- name: 'install plugin: fbs'
working-directory: engine/plugins/fbs
run: npm install --production
- name: 'install plugin: logger'
working-directory: engine/plugins/logger
run: npm install --production
- name: 'install plugin: queue'
working-directory: engine/plugins/queue
run: npm install --production
- name: 'install plugin: server'
working-directory: engine/plugins/server
run: npm install --production
- name: 'install plugin: state_machine'
working-directory: engine/plugins/state_machine
run: npm install --production
- name: JS tests
working-directory: engine
run: npm test
frontend-build:
name: Frontend build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: npm install
run: npm install
- name: npm build
run: npm run build
frontend-coding-standards:
name: Frontend coding standards
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: install
run: npm install
- name: React coding standards
run: npm run check-coding-standards
cypress:
name: Cypress
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup network
run: docker network create frontend
- name: Install client
run: docker compose run frontend npm install
- name: Cypress run
run: docker compose run cypress run --component --browser chrome
- name: Archive screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: cypress-screenshots-chrome
path: cypress/screenshots
retention-days: 7
changelog:
runs-on: ubuntu-20.04
name: Changelog should be updated
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Git fetch
run: git fetch
- name: Check that changelog has been updated.
run: git diff --exit-code origin/develop -- CHANGELOG.md && exit 1 || exit 0