Replace Drone CI configuration with GitHub Actions workflow and update README badge
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
2025-09-02 20:51:53 +01:00
parent b5eb164402
commit 1867fc7dac
3 changed files with 34 additions and 52 deletions

View File

@@ -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

33
.gitea/workflows/ci.yml Normal file
View File

@@ -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

View File

@@ -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.