-
-
Notifications
You must be signed in to change notification settings - Fork 32
41 lines (41 loc) · 1.48 KB
/
regression-test-translations.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Regression Test - Verify Translation(s)"
on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- 'SAMPLE-software-rules.json'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
#os: [ubuntu-latest, windows-latest]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- if: ${{ matrix.os == 'ubuntu-latest' }}
name: Verifing Translation(s) - LINUX
run: python .github/workflows/verify_result.py -l
- if: ${{ matrix.os == 'windows-latest' }}
name: Verifing Translation(s) - WINDOWS
run: python .github\workflows\verify_result.py -l
- if: ${{ matrix.os == 'windows-latest' }}
name: Git Add any changes to Translation(s) - WINDOWS
run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
git add locales/
git commit -m "Add changed Translation(s) if any"
git push