Skip to content

Commit

Permalink
feat: add Bun as a supported runtime (gamedig#596)
Browse files Browse the repository at this point in the history
* feat: add badge to the README

* chore: changelog

* feat: add bun workflow

* oops change workflow name it was totally not copy pasted I swear

* workflow pls trigger

* revert last commit

* fix bun workflow

* specify target bun in workflow
  • Loading branch information
CosminPerRam authored Aug 2, 2024
1 parent c5f8ec5 commit db2f61d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/bun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

name: Bun

on:
push:
branches: ["master"]
paths:
- "**.js" # Any JS file
- "package.json"
- "package-lock.json"
- ".github/workflows/bun.yml" # This action
pull_request:
branches: ["master"]
paths:
- "**.js" # Any JS file
- "package.json"
- "package-lock.json"
- ".github/workflows/bun.yml" # This action

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Setup repo
uses: actions/checkout@v3

- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.21

- name: Install Dependencies
run: bun install

- name: Compile
run: bun build bin/gamedig.js --target=bun
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## To Be Released...
## 5.X.Y
* Fix the `name` field on Minecraft servers running Velocity with multiple layers of color encoding (#595)
* Added [Bun](https://bun.sh/) runtime support (#596)

## 5.1.0
* FOUNDRY - Added support (#585)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# node-GameDig - Game Server Query Library
[![npmjs.com](https://img.shields.io/npm/dt/gamedig?color=purple)](https://www.npmjs.com/package/gamedig) ![deno compatibility](https://shield.deno.dev/deno/>=1.39.2) ![Static Badge](https://img.shields.io/badge/node-%3E%3D16.20.0-green?logo=node.js&logoColor=green)
[![npmjs.com](https://img.shields.io/npm/dt/gamedig?color=purple)](https://www.npmjs.com/package/gamedig) ![Node](https://img.shields.io/badge/node-%3E%3D16.20.0-green?logo=node.js&logoColor=green) ![deno compatibility](https://shield.deno.dev/deno/>=1.39.2) ![Bun](https://img.shields.io/badge/Bun-%3E%3D1.1.21-white?logo=bun)

**node-GameDig** is a game server query Node.js module (as well as a [command line executable](#usage-from-command-line)),
capable of querying for the status of nearly any game or voice server.
Expand Down

0 comments on commit db2f61d

Please sign in to comment.