diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 784b7ab..0000000 --- a/.drone.yml +++ /dev/null @@ -1,51 +0,0 @@ -kind: pipeline -type: docker -name: build - -steps: - - name: install - image: node:lts-alpine - commands: - - npm install - - - name: lint - image: node:lts-alpine - commands: - - npm run lint - depends_on: - - install - - - name: test - image: node:lts-alpine - commands: - - npm run test - depends_on: - - install - - - name: build - image: node:lts-alpine - commands: - - apk add zip - - npm run build - - zip -r romulus-m.zip dist/ - depends_on: - - install - - - name: publish - image: plugins/gitea-release - depends_on: - - lint - - test - - build - when: - event: - - tag - settings: - base_url: https://git.jacknet.io - api_key: - from_secret: gitea_token - files: - - romulus-m.zip - checksum: - - md5 - - sha256 diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..3113813 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Run linter + run: npm run lint + + - name: Run tests + run: npm run test + + - name: Build project + run: npm run build \ No newline at end of file diff --git a/README.md b/README.md index 0b1f094..6621ece 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Romulus-JS -[![Build Status](https://drone.jacknet.io/api/badges/TerribleCodeClub/romulus-js/status.svg)](https://drone.jacknet.io/TerribleCodeClub/romulus-js) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) +[![CI](https://git.jacknet.io/TerribleCodeClub/romulus-js/actions/workflows/ci.yml/badge.svg)](https://git.jacknet.io/TerribleCodeClub/romulus-js/actions) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) An implementation of the Romulus-M cryptography specification.