Skip to content

Commit d020a22

Browse files
committed
fixes
1 parent ffc390a commit d020a22

File tree

3 files changed

+33
-16
lines changed

3 files changed

+33
-16
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 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
2+
# However, once you have cloned this repo for your own use, LiveKit recommends you check them in and delete this github workflow entirely
3+
4+
name: Template Check
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
check-template-files:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Check template files not tracked in git
20+
run: |
21+
if git ls-files | grep -q "^uv\.lock$"; then
22+
echo "Error: uv.lock should not be checked into git"
23+
echo "Disable this test and commit the file once you have cloned this repo for your own use"
24+
exit 1
25+
fi
26+
if git ls-files | grep -q "^livekit\.toml$"; then
27+
echo "Error: livekit.toml should not be checked into git"
28+
echo "Disable this test and commit the file once you have cloned this repo for your own use"
29+
exit 1
30+
fi
31+
echo "✓ uv.lock and livekit.toml are correctly not tracked in git"

.github/workflows/tests.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,6 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
# 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
17-
# However, once you have cloned this repo for your own use, LiveKit recommends you check them in and remove this check
18-
- name: Check files not tracked in git
19-
run: |
20-
if git ls-files | grep -q "^uv\.lock$"; then
21-
echo "Error: uv.lock should not be checked into git"
22-
echo "Disable this test and commit the file once you have cloned this repo for your own use"
23-
exit 1
24-
fi
25-
if git ls-files | grep -q "^livekit\.toml$"; then
26-
echo "Error: livekit.toml should not be checked into git"
27-
echo "Disable this test and commit the file once you have cloned this repo for your own use"
28-
exit 1
29-
fi
30-
echo "✓ uv.lock and livekit.toml are correctly not tracked in git"
31-
3216
- name: Install uv
3317
uses: astral-sh/setup-uv@v1
3418
with:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ Once you've started your own project based on this repo, you should:
9292

9393
2. **Remove the git tracking test**: Delete the "Check files not tracked in git" step from `.github/workflows/tests.yml` since you'll now want this file to be tracked. These are just there for development purposes in the template repo itself.
9494

95+
3. **Add your own repository secrets**: You must [add secrets](https://docs.github.com/en/actions/how-tos/writing-workflows/choosing-what-your-workflow-does/using-secrets-in-github-actions) for `OPENAI_API_KEY` or your other LLM provider so that the tests can run in CI.
96+
9597
## Deploying to production
9698

9799
This project is production-ready and includes a working `Dockerfile`. To deploy it to LiveKit Cloud or another environment, see the [deploying to production](https://docs.livekit.io/agents/ops/deployment/) guide.

0 commit comments

Comments
 (0)