Switch CI to GitHub Actions from Circle-CI
This commit is contained in:
parent
aee52842d1
commit
4500f0a3f4
|
@ -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
|
|
|
@ -8,5 +8,8 @@ indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "kp_liberation",
|
"name": "kp_liberation",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=7"
|
"node": ">=10"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/del": "^3.0.1",
|
"@types/del": "^3.0.1",
|
||||||
|
|
Loading…
Reference in New Issue