From 7203ee776c5e0b17fb76c2bff1d1450cd73560fc Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Wed, 18 Jun 2025 16:43:19 +0200 Subject: [PATCH] Add CI --- .github/workflows/lint.yaml | 27 +++++++++++++++++++++++++++ src/media-sink.ts | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..3b81bc1 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,27 @@ +name: Lint + +on: + push: + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run TypeScript + run: npm run check + + - name: Run ESLint + run: npm run lint diff --git a/src/media-sink.ts b/src/media-sink.ts index 14f7a24..77dd143 100644 --- a/src/media-sink.ts +++ b/src/media-sink.ts @@ -581,7 +581,7 @@ export abstract class BaseMediaSampleSink< ) ) { await decodePackets(); - await flushDecoder(); + await flushDecoder(); // Always flush here, improves decoder compatibility } timestampsOfInterest.push(targetPacket.timestamp);