Skip to content

Merge pull request #927 from bitmovin/fix/live-indicator-seekbar-shri… #2515

Merge pull request #927 from bitmovin/fix/live-indicator-seekbar-shri…

Merge pull request #927 from bitmovin/fix/live-indicator-seekbar-shri… #2515

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
pull_request:
workflow_call:
concurrency:
group: ${{ github.event_name == 'workflow_call' && format('ci-{0}', github.run_id) || format('ci-{0}', github.ref) }}
cancel-in-progress: true
jobs:
gate:
name: Gate
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.eval.outputs.should_run }}
steps:
- id: eval
run: |
if [[ "${{ github.event_name }}" == "push" ]] || [[ "${{ github.event_name }}" == "workflow_call" ]]; then
echo "should_run=true" >> "$GITHUB_OUTPUT"
elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]]; then
echo "should_run=true" >> "$GITHUB_OUTPUT"
else
echo "should_run=false" >> "$GITHUB_OUTPUT"
fi
test:
name: Test
needs: gate
if: needs.gate.outputs.should_run == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dependencies
uses: ./.github/actions/setup-dependencies
- name: Test
run: npm test
build:
name: Build
needs: gate
if: needs.gate.outputs.should_run == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dependencies
uses: ./.github/actions/setup-dependencies
- name: Build
run: npm run build
lint:
name: Lint
needs: gate
if: needs.gate.outputs.should_run == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dependencies
uses: ./.github/actions/setup-dependencies
- name: Lint
run: npm run lint