Merge pull request #679 from KillahPotatoes/gh-actions/rewrite
Swtich CI to GitHub Actions (rewrite)
This commit is contained in:
commit
ba9b003232
|
@ -1,37 +0,0 @@
|
|||
version: 2
|
||||
jobs:
|
||||
validate:
|
||||
docker:
|
||||
- image: acemod/armake:master
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Validate SQF
|
||||
command: python tools/sqf_validator.py
|
||||
- run:
|
||||
name: Validate Config style
|
||||
command: python tools/config_style_checker.py
|
||||
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/node
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: npm install --loglevel=error
|
||||
working_directory: ~/project/tools/buildtool
|
||||
- run:
|
||||
name: Pack PBOs
|
||||
command: npx gulp
|
||||
working_directory: ~/project/tools/buildtool
|
||||
- store_artifacts:
|
||||
path: ~/project/_build/pbo
|
||||
destination: 'KP-Liberation'
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build:
|
||||
jobs:
|
||||
- build
|
||||
- validate
|
|
@ -8,5 +8,8 @@ indent_style = space
|
|||
indent_size = 4
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.yml]
|
||||
indent_size = 2
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- 'v0.97'
|
||||
pull_request: ~
|
||||
|
||||
jobs:
|
||||
test-sqflint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- uses: arma-actions/sqflint@v1.0
|
||||
name: Validate with SQFLint
|
||||
with:
|
||||
args: --exit '' --directory Missionframework
|
||||
|
||||
test-ace-tools:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- uses: docker://python:3.7-alpine
|
||||
name: Setup Python
|
||||
|
||||
- run: |
|
||||
python3 --version
|
||||
python3 tools/sqf_validator.py
|
||||
name: Validate with ACE SQF Validator
|
||||
|
||||
- run: |
|
||||
python3 --version
|
||||
python3 tools/config_style_checker.py
|
||||
name: Validate with ACE Config Style Checker
|
||||
|
||||
artifacts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- uses: docker://node:10-alpine
|
||||
name: Setup Node
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: tools/buildtool
|
||||
run: npm install --loglevel=error
|
||||
|
||||
- name: Assemble and pack
|
||||
working-directory: tools/buildtool
|
||||
run: npx gulp
|
||||
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: PBO-Files
|
||||
path: _build/pbo
|
||||
|
Loading…
Reference in New Issue