From 0f472547ef69b1263fbacaa7fffc3766e114ef21 Mon Sep 17 00:00:00 2001
From: Thomas Hauschild <7961978+Morgy93@users.noreply.github.com>
Date: Thu, 11 Apr 2024 23:07:07 +0200
Subject: [PATCH] feat: fix code style (#4)
* add language for code blocks
* fix code style issues
---
.github/workflows/tests.yml | 10 +++++-----
README.md | 29 ++++++++++++++++++-----------
install.yaml | 4 ++--
tests/test.bats | 1 -
web-build/Dockerfile.bun | 2 +-
5 files changed, 26 insertions(+), 20 deletions(-)
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 3191904..c245249 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -2,10 +2,10 @@ name: tests
on:
pull_request:
push:
- branches: [ main ]
+ branches: [main]
schedule:
- - cron: '25 08 * * *'
+ - cron: "25 08 * * *"
workflow_dispatch:
inputs:
@@ -15,9 +15,9 @@ on:
required: false
default: false
-# This is required for "gautamkrishnar/keepalive-workflow"
+# This is required for "gautamkrishnar/keepalive-workflow", see "ddev/github-action-add-on-test"
permissions:
- contents: write
+ actions: write
jobs:
tests:
@@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: ddev/github-action-add-on-test@v1
+ - uses: ddev/github-action-add-on-test@v2
with:
ddev_version: ${{ matrix.ddev_version }}
token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/README.md b/README.md
index 3fb2cc3..6015a17 100644
--- a/README.md
+++ b/README.md
@@ -3,31 +3,38 @@
-
+
ddev-bun
-[![tests](https://github.com/Morgy93/ddev-bun/actions/workflows/tests.yml/badge.svg)](https://github.com/Morgy93/ddev-bun/actions/workflows/tests.yml) ![project is maintained](https://img.shields.io/maintenance/yes/2024.svg)
+[![tests](https://github.com/Morgy93/ddev-bun/actions/workflows/tests.yml/badge.svg)](https://github.com/Morgy93/ddev-bun/actions/workflows/tests.yml)
+![project is maintained](https://img.shields.io/maintenance/yes/2024.svg)
## What is Bun?
-> Bun is an all-in-one JavaScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.
+> Bun is an all-in-one JavaScript runtime & toolkit designed for speed,
+> complete with a bundler, test runner, and Node.js-compatible package manager.
-For more information, see [What is Bun?](https://github.com/oven-sh/bun#what-is-bun) or visit .
+For more information,
+see [What is Bun?](https://github.com/oven-sh/bun#what-is-bun)
+or visit .
YouTube: [Bun 1.0 is here](https://www.youtube.com/watch?v=BsnCpESUEqM)
## Installation
-```
+```shell
ddev get Morgy93/ddev-bun
ddev restart
```
## Usage
-```
+```shell
ddev bun
```
@@ -35,8 +42,8 @@ Please refer to the documentation at .
Quick links:
- - [RUNTIME](https://bun.sh/docs/cli/run)
- - [PACKAGE MANAGER](https://bun.sh/docs/cli/install)
- - [BUNDLER](https://bun.sh/docs/bundler)
- - [TEST RUNNER](https://bun.sh/docs/cli/test)
- - [PACKAGE RUNNER](https://bun.sh/docs/cli/bunx)
+- [RUNTIME](https://bun.sh/docs/cli/run)
+- [PACKAGE MANAGER](https://bun.sh/docs/cli/install)
+- [BUNDLER](https://bun.sh/docs/bundler)
+- [TEST RUNNER](https://bun.sh/docs/cli/test)
+- [PACKAGE RUNNER](https://bun.sh/docs/cli/bunx)
diff --git a/install.yaml b/install.yaml
index 0586570..9e7355a 100644
--- a/install.yaml
+++ b/install.yaml
@@ -1,5 +1,5 @@
name: bun
project_files:
-- commands/web/bun
-- web-build/Dockerfile.bun
+ - commands/web/bun
+ - web-build/Dockerfile.bun
diff --git a/tests/test.bats b/tests/test.bats
index eefa3ff..82b242e 100644
--- a/tests/test.bats
+++ b/tests/test.bats
@@ -40,4 +40,3 @@ teardown() {
ddev restart >/dev/null
health_checks
}
-
diff --git a/web-build/Dockerfile.bun b/web-build/Dockerfile.bun
index 912861c..11a79c4 100644
--- a/web-build/Dockerfile.bun
+++ b/web-build/Dockerfile.bun
@@ -1,2 +1,2 @@
#ddev-generated
-RUN npm install -g bun
+RUN npm install -g bun@latest