mattermost-desktop/.github/actions/test/action.yaml
Devin Binnie be182ac513
Assorted Desktop App repo fixes (#3065)
* Fix ESLint and turn on the check in CI

* npm audit fix

* Remove electron-rebuild, use electron-builder for robotjs

* Add mochawesome-report to eslintignore

* Remove linebreak-style

* Revert "Remove electron-rebuild, use electron-builder for robotjs"

This reverts commit be35eb7300df725e381538dd30446a9acb8ab1df.
2024-06-14 11:46:35 -04:00

31 lines
761 B
YAML

# Copyright 2022 Mattermost, Inc.
name: "test-ci"
description: This action used to run universal tests for all OS
inputs:
shell:
description: The shell to run the test
required: true
default: bash
runs:
using: "composite"
steps:
- name: ci/run-eslint
run: npm run lint:js-quiet
shell: ${{ inputs.shell }}
- name: ci/run-check-types
run: npm run check-types
shell: ${{ inputs.shell }}
- name: ci/run-i18n-check
shell: ${{ inputs.shell }}
run: |
npm run i18n-extract -- --desktop-dir .
git --no-pager diff --exit-code i18n/en.json
- name: ci/run-unit-ci
shell: ${{ inputs.shell }}
env:
ELECTRON_DISABLE_SANDBOX: "1"
run: |
npm run test:unit