Skip to content

Commit 46f9f2b

Browse files
committed
Front: CI: rename workflow
1 parent 0392e18 commit 46f9f2b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/actions/cache-front/action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ description: 'Cache for Front'
33
runs:
44
using: "composite"
55
steps:
6+
- name: Add build dependencies to container
7+
shell: sh
8+
run: apk add --update --no-progress tar
69
- name: Cache
710
uses: actions/cache@v3
811
with:

.github/workflows/front.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Front (Vue)"
1+
name: "Front"
22
on:
33
pull_request:
44
branches: [ main ]
@@ -54,7 +54,7 @@ jobs:
5454
- uses: ./.github/actions/cache-front
5555
- run: yarn
5656
- name: Check format
57-
run: yarn run prettier --check
57+
run: yarn run prettier --check .
5858
Lint:
5959
if: ${{ needs.changes.outputs.front == 'true' && github.event_name == 'pull_request' }}
6060
runs-on: ubuntu-latest

front/composables/player/context.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Hls from "hls.js";
22
import { API } from "~/api/api";
33
import type { File } from "~/models/domain/file";
44
import type { FileInfo } from "~/models/domain/file-info";
5-
import { v4 as uuidv4 } from 'uuid';
5+
import { v4 as uuidv4 } from "uuid";
66

77
const canBePlayedNatively = (info: FileInfo, videoRef: HTMLVideoElement) => {
88
const codec = info.mimeCodec;
@@ -69,8 +69,8 @@ export const usePlayerContext = (props: {
6969
player.error?.code ==
7070
MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED
7171
) {
72-
console.log("Moving to transcoding");
7372
playMode.value = "hls";
73+
playHls();
7474
}
7575
console.error(error);
7676
};
@@ -86,7 +86,6 @@ export const usePlayerContext = (props: {
8686
player.onended = props.onEnd;
8787
};
8888
const playDirectVideo = () => {
89-
console.log(canBePlayedNatively(i, player))
9089
if (!canBePlayedNatively(i, player)) {
9190
playMode.value = "hls";
9291
playHls();

0 commit comments

Comments
 (0)