unit testing #7
|
@ -1,19 +0,0 @@
|
||||||
name: Unit Tests with docker compose
|
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
||||||
on: [pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
unit-test:
|
|
||||||
container:
|
|
||||||
image: docker:dind
|
|
||||||
steps:
|
|
||||||
- name: echo
|
|
||||||
run: echo $DOCKER_HOST
|
|
||||||
- name: Installing node
|
|
||||||
run: apk add nodejs git curl bash
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Install Bun runtime
|
|
||||||
run: curl -fsSL https://bun.sh/install | bash
|
|
||||||
- name: Run docker-compose
|
|
||||||
run: docker compose down -v && docker compose run bot-api bun test
|
|
|
@ -1,17 +1,19 @@
|
||||||
name: Unit Tests
|
name: Unit Tests with docker compose
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-test:
|
unit-test:
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: docker:dind
|
||||||
steps:
|
steps:
|
||||||
|
- name: echo
|
||||||
|
run: echo $DOCKER_HOST
|
||||||
|
- name: Installing node
|
||||||
|
run: apk add nodejs git curl bash
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install Bun runtime
|
- name: Install Bun runtime
|
||||||
run: curl -fsSL https://bun.sh/install | bash
|
run: curl -fsSL https://bun.sh/install | bash
|
||||||
- name: Install dependencies
|
- name: Run docker-compose
|
||||||
run: ~/.bun/bin/bun install
|
run: docker compose down -v && docker compose run bot-api bun test
|
||||||
- name: Run the test
|
|
||||||
run: ~/.bun/bin/bun test
|
|
Loading…
Reference in New Issue