-
Notifications
You must be signed in to change notification settings - Fork 163
31 lines (26 loc) · 1.09 KB
/
template-check.yml
File metadata and controls
31 lines (26 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# As this is a starter template project, we don't want to check in the uv.lock and livekit.toml files in its template form
# However, once you have cloned this repo for your own use, LiveKit recommends you check them in and delete this github workflow entirely
name: Template Check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check-template-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check template files not tracked in git
run: |
if git ls-files | grep -q "^uv\.lock$"; then
echo "Error: uv.lock should not be checked into git"
echo "Disable this test and commit the file once you have cloned this repo for your own use"
exit 1
fi
if git ls-files | grep -q "^livekit\.toml$"; then
echo "Error: livekit.toml should not be checked into git"
echo "Disable this test and commit the file once you have cloned this repo for your own use"
exit 1
fi
echo "✓ uv.lock and livekit.toml are correctly not tracked in git"