v1.0.0 #28
|
@ -5,14 +5,18 @@ jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
container:
|
container:
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
|
volumes:
|
||||||
|
- /usr/local/share/.cache/yarn:/usr/local/share/.cache/yarn
|
||||||
|
- /var/lib/docker/image:/var/lib/docker/image
|
||||||
|
- /var/lib/docker/overlay2:/var/lib/docker/overlay2
|
||||||
steps:
|
steps:
|
||||||
- name: Starting docker daemon
|
- name: Starting docker daemon
|
||||||
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
|
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
|
||||||
- name: Installing necessary packages
|
- name: Installing necessary packages
|
||||||
run: apk add npm git curl bash
|
run: apk add yarn git curl bash
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install project dependencies
|
- name: Install project dependencies
|
||||||
run: npm install
|
run: yarn install --frozen-lockfile --ignore-scripts
|
||||||
- name: Run docker-compose
|
- name: Run docker-compose
|
||||||
run: docker compose down -v && docker compose run bot-api bun test
|
run: docker compose down -v && docker compose run bot-api bun test
|
|
@ -37,13 +37,12 @@ bun install
|
||||||
To run:
|
To run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up
|
bun run dev
|
||||||
```
|
```
|
||||||
|
|
||||||
For testing, remember:
|
For testing, remember:
|
||||||
```bash
|
```bash
|
||||||
docker compose down -v
|
bun run test
|
||||||
docker compose run bot-api bun run test
|
|
||||||
```
|
```
|
||||||
|
|
||||||
This project was created using `bun init` in bun v1.0.13. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
|
This project was created using `bun init` in bun v1.0.13. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[install.lockfile]
|
||||||
|
# whether to save a non-Bun lockfile alongside bun.lockb
|
||||||
|
# only "yarn" is supported
|
||||||
|
print = "yarn"
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "fib-api",
|
"name": "bot-api",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
Loading…
Reference in New Issue