forked from explodingcamera/subsonic-api
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 735 Bytes
/
test.yml
File metadata and controls
34 lines (29 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- main
jobs:
test:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies & Build
run: bun install && bun run build
- name: Run Tests
env:
SUBSONIC_URL: ${{ secrets.SUBSONIC_URL }}
SUBSONIC_USER: ${{ secrets.SUBSONIC_USER }}
SUBSONIC_PASS: ${{ secrets.SUBSONIC_PASS }}
run: bun test --timeout 10000