Enable Gitea JS checks
This commit is contained in:
32
.gitea/workflows/check-js.yaml
Normal file
32
.gitea/workflows/check-js.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Check JS
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- railbird-v6
|
||||
|
||||
jobs:
|
||||
typescript:
|
||||
name: Check TS (tsc)
|
||||
runs-on: nixos-x86_64-linux
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install node_modules
|
||||
uses: ./.github/actions/setup-node
|
||||
- name: Check TypeScript
|
||||
run: yarn tsc
|
||||
- name: Test web HLS
|
||||
run: yarn test:web
|
||||
|
||||
lint:
|
||||
name: Lint JS (eslint, prettier)
|
||||
runs-on: nixos-x86_64-linux
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install node_modules
|
||||
uses: ./.github/actions/setup-node
|
||||
- name: Run ESLint
|
||||
run: yarn lint
|
||||
- name: Verify auto-fix produces no changes
|
||||
run: yarn lint --fix && git diff --exit-code HEAD
|
||||
@@ -475,7 +475,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
||||
(e: NativeSyntheticEvent<OnSeekCompleteData>) => {
|
||||
onSeekComplete?.(e.nativeEvent);
|
||||
},
|
||||
[onSeekComplete]
|
||||
[onSeekComplete],
|
||||
);
|
||||
|
||||
const onVideoPlaybackStateChanged = useCallback(
|
||||
@@ -733,10 +733,10 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
||||
}
|
||||
|
||||
// poster style
|
||||
const baseStyle: StyleProp<ImageStyle> = {
|
||||
...StyleSheet.absoluteFill,
|
||||
resizeMode: _posterResizeMode,
|
||||
};
|
||||
const baseStyle: StyleProp<ImageStyle> = [
|
||||
StyleSheet.absoluteFill,
|
||||
{resizeMode: _posterResizeMode},
|
||||
];
|
||||
|
||||
let posterStyle: StyleProp<ImageStyle> = baseStyle;
|
||||
|
||||
@@ -786,10 +786,10 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
|
||||
]);
|
||||
|
||||
const _style: StyleProp<ViewStyle> = useMemo(
|
||||
() => ({
|
||||
...StyleSheet.absoluteFill,
|
||||
...(showPoster ? {display: 'none'} : {}),
|
||||
}),
|
||||
() => [
|
||||
StyleSheet.absoluteFill,
|
||||
showPoster ? {display: 'none'} : undefined,
|
||||
],
|
||||
[showPoster],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user