From 4500f0a3f41c238cc18addc58f7f9c51a34198a0 Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Tue, 17 Sep 2019 19:08:41 +0200 Subject: [PATCH] Switch CI to GitHub Actions from Circle-CI --- .circleci/config.yml | 35 ---------------------------------- .editorconfig | 3 +++ .github/workflows/main.yml | 39 ++++++++++++++++++++++++++++++++++++++ _tools/package.json | 2 +- 4 files changed, 43 insertions(+), 36 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/main.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 133d8468..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -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 diff --git a/.editorconfig b/.editorconfig index af1c2ff3..32b327c8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,5 +8,8 @@ indent_style = space indent_size = 4 trim_trailing_whitespace = true +[*.yml] +indent_size = 2 + [*.md] trim_trailing_whitespace = false diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..a1eac5cd --- /dev/null +++ b/.github/workflows/main.yml @@ -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 + diff --git a/_tools/package.json b/_tools/package.json index db087048..08a60865 100644 --- a/_tools/package.json +++ b/_tools/package.json @@ -1,7 +1,7 @@ { "name": "kp_liberation", "engines": { - "node": ">=7" + "node": ">=10" }, "dependencies": { "@types/del": "^3.0.1",