changed the action to use cache (#19)
Reviewed-on: #19 Co-authored-by: Alie <bizcochito@anartist.org> Co-committed-by: Alie <bizcochito@anartist.org>
This commit is contained in:
parent
478487d402
commit
cf03c90c46
|
@ -5,14 +5,18 @@ jobs:
|
|||
unit-test:
|
||||
container:
|
||||
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:
|
||||
- name: Starting docker daemon
|
||||
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
|
||||
- name: Installing necessary packages
|
||||
run: apk add npm git curl bash
|
||||
run: apk add yarn git curl bash
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Install project dependencies
|
||||
run: npm install
|
||||
run: yarn install --frozen-lockfile --ignore-scripts
|
||||
- name: Run docker-compose
|
||||
run: docker compose down -v && docker compose run bot-api bun test
|
|
@ -37,13 +37,12 @@ bun install
|
|||
To run:
|
||||
|
||||
```bash
|
||||
docker compose up
|
||||
bun run dev
|
||||
```
|
||||
|
||||
For testing, remember:
|
||||
```bash
|
||||
docker compose down -v
|
||||
docker compose run bot-api bun run test
|
||||
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.
|
||||
|
|
|
@ -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",
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
|
|
Loading…
Reference in New Issue