Skip to content

Commit

Permalink
Update unit test workflow to include push event
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiher committed Mar 15, 2024
1 parent a1af672 commit 0c612b4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: Unit Tests
name: Run Unit Tests

on:
workflow_dispatch:
inputs:
branch:
description: 'Branch name'
ref:
description: 'Branch/Tag/SHA to test'
required: true
pull_request:
push:

jobs:
build:
run-unit-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
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
uses: actions/setup-node@v4
Expand Down

0 comments on commit 0c612b4

Please sign in to comment.