Feature/2891 upgrades #482
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |