From c3b4c5c3e2970df34617ba6add128563986e45de Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 23 Feb 2024 18:28:49 +0000 Subject: [PATCH] Migrate to Woodpecker CI (#148) # Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - Migrate to Woodpecker CI #131 ## Type of change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. # Checklist - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/148 Reviewed-by: VylpesTester Co-authored-by: Ethan Lane Co-committed-by: Ethan Lane --- .drone.yml | 75 ------------------------------------------------- .woodpecker.yml | 37 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 75 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 48d8c9c..0000000 --- a/.drone.yml +++ /dev/null @@ -1,75 +0,0 @@ ---- - -kind: pipeline -name: deployment - -steps: - - name: build - image: node - commands: - - yarn install --frozen-lockfile - - yarn build - - name: test - image: node - commands: - - yarn test - depends_on: - - build - - name: lint - image: node - commands: - - yarn lint - depends_on: - - build - - name: deploy - image: plugins/npm - settings: - username: vylpes - password: - from_secret: npm_password - email: ethan@vylpes.com - token: - from_secret: npm_token - depends_on: - - test - - lint - -trigger: - branch: - - master - event: - - push - - tag - ---- - -kind: pipeline -name: integration - -steps: - - name: build - image: node - commands: - - yarn install --frozen-lockfile - - yarn build - - name: test - image: node - commands: - - yarn test - depends_on: - - build - - name: lint - image: node - commands: - - yarn lint - depends_on: - - build - -trigger: - branch: - - develop - - feature/* - - hotfix/* - - renovate/* - event: - - push diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..d05472f --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,37 @@ +steps: + build: + image: node + commands: + - yarn install --frozen-lockfile + - yarn build + when: + event: [ push, pull_request ] + branch: [ hotfix/*, feature/*, renovate/*, develop, main ] + lint: + image: node + commands: + - yarn lint + when: + event: [ push, pull_request ] + branch: [ hotfix/*, feature/*, renovate/*, develop, main ] + test: + image: node + commands: + - yarn test + when: + event: [ push, pull_request ] + branch: [ hotfix/*, feature/*, renovate/*, develop, main ] + publish: + image: plugins/npm + settings: + username: + from_secret: NPM_USERNAME + email: + from_secret: NPM_EMAIL + password: + from_secret: NPM_PASSWORD + api_key: + from_secret: NPM_TOKEN + when: + event: tag + branch: main \ No newline at end of file