2020-05-27 14:25:25 +02:00
|
|
|
name: CI
|
2020-05-28 09:37:57 +02:00
|
|
|
|
2020-05-27 14:25:25 +02:00
|
|
|
on:
|
2020-05-28 09:37:57 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- ModdedGamers-GH-Actions
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2020-05-27 14:25:25 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-05-28 09:37:57 +02:00
|
|
|
setup:
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install ffmpeg
|
|
|
|
|
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v2-beta
|
|
|
|
with:
|
|
|
|
node-version: 10.x
|
|
|
|
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install Yarn Dependencies
|
|
|
|
run: |
|
|
|
|
yarn
|
|
|
|
cd gulp/
|
|
|
|
yarn
|
|
|
|
cd ..
|
|
|
|
- name: Lint
|
|
|
|
run: |
|
|
|
|
yarn lint
|
2020-07-22 04:15:16 +02:00
|
|
|
- name: TSLint
|
|
|
|
run: |
|
2020-07-22 06:23:49 +02:00
|
|
|
cd gulp
|
|
|
|
yarn gulp translations.fullBuild
|
2021-03-11 06:11:29 +01:00
|
|
|
yarn gulp localConfig.findOrCreate
|
2020-07-22 06:23:49 +02:00
|
|
|
cd ..
|
2020-07-22 04:15:16 +02:00
|
|
|
yarn tslint
|
2020-10-04 10:38:28 +02:00
|
|
|
|
|
|
|
yaml-lint:
|
|
|
|
name: yaml-lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: YAML Lint
|
|
|
|
uses: ibiqlik/action-yamllint@v1.0.0
|
|
|
|
with:
|
|
|
|
file_or_dir: translations/*.yaml
|