mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-19 00:18:56 +01:00
Update unit test workflow to include push event
This commit is contained in:
parent
a1af672c7c
commit
0c612b4836
11
.github/workflows/unit-tests.yml
vendored
11
.github/workflows/unit-tests.yml
vendored
@ -1,22 +1,23 @@
|
|||||||
name: Unit Tests
|
name: Run Unit Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
branch:
|
ref:
|
||||||
description: 'Branch name'
|
description: 'Branch/Tag/SHA to test'
|
||||||
required: true
|
required: true
|
||||||
pull_request:
|
pull_request:
|
||||||
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
run-unit-tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event_name != 'workflow_dispatch' && github.ref_name || inputs.branch}}
|
ref: ${{ github.event_name != 'workflow_dispatch' && github.ref_name || inputs.ref}}
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
Loading…
Reference in New Issue
Block a user