bot-api/.gitea/workflows/test.yaml

17 lines
482 B
YAML
Raw Normal View History

2023-12-29 15:08:09 +00:00
name: Unit Tests
2023-12-25 13:36:13 +00:00
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
2023-12-25 13:40:10 +00:00
on: [pull_request]
2023-12-25 13:36:13 +00:00
jobs:
2023-12-29 15:08:09 +00:00
unit-test:
2023-12-29 15:16:57 +00:00
container:
image: catthehacker/ubuntu:act-latest
2023-12-25 13:36:13 +00:00
steps:
- name: Check out repository code
uses: actions/checkout@v3
2023-12-29 15:14:37 +00:00
- name: Install Bun runtime
2023-12-29 15:22:03 +00:00
run: curl -fsSL https://bun.sh/install | bash
2023-12-29 15:14:37 +00:00
- name: Install dependencies
2023-12-29 15:22:03 +00:00
run: ~/.bun/bin/bun install
2023-12-29 15:08:09 +00:00
- name: Run the test
2023-12-29 15:22:03 +00:00
run: ~/.bun/bin/bun test