From ad080feef99587ed8e6f79115783ac241d05ff7f Mon Sep 17 00:00:00 2001 From: Balazs Kovacs Date: Wed, 29 Sep 2021 14:47:16 +0200 Subject: [PATCH] chore: change CI to GitLab --- .github/workflows/master-branch.yml | 38 ----------------------------- .github/workflows/pull-request.yml | 38 ----------------------------- .github/workflows/release.yml | 29 ---------------------- .gitlab-ci.yml | 38 +++++++++++++++++++++++++++++ .travis.yml | 20 --------------- 5 files changed, 38 insertions(+), 125 deletions(-) delete mode 100644 .github/workflows/master-branch.yml delete mode 100644 .github/workflows/pull-request.yml delete mode 100644 .github/workflows/release.yml create mode 100644 .gitlab-ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/master-branch.yml b/.github/workflows/master-branch.yml deleted file mode 100644 index 92fd04c..0000000 --- a/.github/workflows/master-branch.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Build status - -on: - push: - branches: - - master -jobs: - build-status: - name: Build status on master branch - runs-on: ubuntu-latest - steps: - - name: Git checkout - uses: actions/checkout@v2 - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - registry-url: 'https://registry.npmjs.org' - - name: Install NPM dependencies - run: npm ci - - name: Lint - run: npm run lint - - name: Lint - uses: wearerequired/lint-action@v1.10.0 - with: - continue_on_error: false - auto_fix: false - neutral_check_on_warning: false - eslint: true - eslint_args: src/**/*.ts - eslint_extensions: ts - prettier: true - prettier_args: src/**/*.ts - prettier_extensions: ts - - name: Test - run: npm test - - name: Production build - run: npm run build:prod diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml deleted file mode 100644 index 9a5bf45..0000000 --- a/.github/workflows/pull-request.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Pull request - -on: [pull_request] - -jobs: - continuous-integration: - name: Continuous Integration - runs-on: ubuntu-latest - steps: - - name: Git checkout - uses: actions/checkout@v2 - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - registry-url: 'https://registry.npmjs.org' - - name: Install NPM dependencies - run: npm ci - - name: Commit lint - run: ./node_modules/.bin/commitlint --from $(git merge-base --fork-point master) --verbose - - name: Lint - run: npm run lint - - name: Lint - uses: wearerequired/lint-action@v1.10.0 - with: - continue_on_error: false - auto_fix: false - neutral_check_on_warning: false - eslint: true - eslint_args: src/**/*.ts - eslint_extensions: ts - prettier: true - prettier_args: src/**/*.ts - prettier_extensions: ts - - name: Test - run: | - npm test - npm run codecov diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index d022d40..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Release - -on: - pull_request: - types: [closed] - branches: - - master - -jobs: - release-and-publish: - name: Release and publish to NPM registry - runs-on: ubuntu-latest - steps: - - name: Git checkout - uses: actions/checkout@v2 - with: - ref: 'master' - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - registry-url: 'https://registry.npmjs.org' - - name: Install NPM dependencies - run: npm ci - - name: Release and publish to NPM registry - env: - NPM_LOGIN_TOKEN: ${{ secrets.NPM_LOGIN_TOKEN }} - SUPERCHARGE_BOT_DEPLOY_KEY: ${{ secrets.SUPERCHARGE_BOT_DEPLOY_KEY }} - run: ./release.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1b84b7d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,38 @@ +include: + - https://gitlab.com/team-supercharge/jarvis/jarvis/raw/external-pipelines/jarvis.yml + +stages: + # - random + - lint + - release + - build + +# random: +# stage: random +# script: +# - export +# - echo $CI_PIPELINE_SOURCE +# - echo blablablablabla +# - git remote show origin + +commitlint: + extends: .jarvis-commitlint + stage: lint + +# --- + +main-release: + extends: .jarvis-main-release + stage: release + +pre-release: + extends: .jarvis-pre-release + stage: release + +# --- + +build: + extends: .jarvis-on-release + stage: build + script: + - echo "project being built" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f427fa9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -os: linux -dist: focal # 20.04 LTS -sudo: false - -language: node_js -node_js: - - 14 - -install: - - npm ci - -jobs: - include: - - stage: Commit lint - script: ./node_modules/.bin/commitlint --from $(git merge-base --fork-point master) --verbose - - stage: Lint - script: npm run lint - - stage: Test - script: npm test - after_script: npm run codecov