Switch CI to GitHub Actions from Circle-CI

This commit is contained in:
Filip Maciejewski 2019-09-17 19:11:13 +02:00
parent 4461e5e742
commit 59e318b3ee
3 changed files with 62 additions and 37 deletions

View File

@ -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

View File

@ -8,5 +8,8 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.yml]
indent_size = 2
[*.md]
trim_trailing_whitespace = false

59
.github/workflows/main.yml vendored Normal file
View File

@ -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@1.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