Switch CI to GitHub Actions from Circle-CI

This commit is contained in:
Filip Maciejewski 2019-09-17 19:08:41 +02:00
parent aee52842d1
commit 4500f0a3f4
4 changed files with 43 additions and 36 deletions

View File

@ -1,35 +0,0 @@
version: 2
jobs:
pack:
docker:
- image: circleci/node
steps:
- checkout
- run:
name: Install dependencies
command: npm install --loglevel=error
working_directory: ~/project/_tools
- run:
name: Pack PBOs
command: npx gulp
working_directory: ~/project/_tools
- store_artifacts:
path: ~/project/_tools/build/pbo
destination: 'KP-Liberation'
validate:
docker:
- image: circleci/python
steps:
- checkout
- run:
name: Install SQFLint
command: sudo pip install sqflint
- run:
name: Validate SQF
command: sqflint -d Missionframework
workflows:
version: 2
build:
jobs:
- pack
- 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

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

@ -0,0 +1,39 @@
name: CI
on:
push:
branches:
- master
pull_request: ~
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: arma-actions/sqflint@1.0
with:
args: --directory Missionframework
artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: docker://node:10-alpine
name: Setup Node
- name: Install dependencies
working-directory: _tools
run: npm install
- name: Assemble and pack
working-directory: _tools
run: npx gulp
- uses: actions/upload-artifact@master
with:
name: PBO-Files
path: _tools/build/pbo

View File

@ -1,7 +1,7 @@
{
"name": "kp_liberation",
"engines": {
"node": ">=7"
"node": ">=10"
},
"dependencies": {
"@types/del": "^3.0.1",