2023-03-06 01:51:25 -08:00
|
|
|
# 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:
|
2024-06-14 08:46:35 -07:00
|
|
|
- name: ci/run-eslint
|
|
|
|
run: npm run lint:js-quiet
|
|
|
|
shell: ${{ inputs.shell }}
|
2023-03-06 01:51:25 -08:00
|
|
|
- name: ci/run-check-types
|
|
|
|
run: npm run check-types
|
|
|
|
shell: ${{ inputs.shell }}
|
|
|
|
- name: ci/run-i18n-check
|
|
|
|
shell: ${{ inputs.shell }}
|
|
|
|
run: |
|
2024-03-12 07:04:11 -07:00
|
|
|
npm run i18n-extract -- --desktop-dir .
|
2023-03-06 01:51:25 -08:00
|
|
|
git --no-pager diff --exit-code i18n/en.json
|
|
|
|
- name: ci/run-unit-ci
|
|
|
|
shell: ${{ inputs.shell }}
|
|
|
|
env:
|
|
|
|
ELECTRON_DISABLE_SANDBOX: "1"
|
|
|
|
run: |
|
2024-03-12 07:04:11 -07:00
|
|
|
npm run test:unit
|