diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3e45992 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Test + +on: + - push + - pull_request + + +jobs: + dry-run: + name: Dry Run + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + - name: Install dependencies + run: bun install + - name: Build + run: bun build src/index.js --minify \ No newline at end of file diff --git a/README.md b/README.md index 21702d8..1843220 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,19 @@ This is a Cloudflare Worker that mirrors to another HTTP connection. - [ ] [PyPI](https://pypi.org) - [ ] [NPM](https://www.npmjs.com) -## Configuration +## Getting Started + +### Installation + +Run the following command to install dependencies: + +```bash +bun install +``` + +Other package managers can be used as well. + +### Configuration Create file `.dev.vars` at the root of the project and add the following content: @@ -36,6 +48,8 @@ DOMAINS = ["example.com"] FORBID_HTML = true ``` -## Development +## License + +CopyRight (c) Cnily03. All rights reserved. -This project will be refactored and updated in the future. +Licensed under the [MIT](./LICENSE) License. diff --git a/bun.lockb b/bun.lockb index a93aaef..23de93a 100644 Binary files a/bun.lockb and b/bun.lockb differ