This commit is contained in:
parent
8ad8bad438
commit
4cef77e4e0
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflows/test.yml
Normal file
21
.forgejo/workflows/test.yml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# this workflow checks if the project can be built successfully.
|
||||||
|
# it also serves to test whether based-alpine and uv-cache are working properly.
|
||||||
|
# Unit tests will be added here eventually
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
test-build:
|
||||||
|
runs-on: based-alpine
|
||||||
|
steps:
|
||||||
|
- name: checkout source
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: setup cache
|
||||||
|
id: uv-cache
|
||||||
|
uses: https://git.ficd.sh/ficd/uv-cache@v1
|
||||||
|
- name: Check cache status
|
||||||
|
run: |
|
||||||
|
echo "Cache hit? ${{ steps.uv-cache.outputs.cache-hit }}"
|
||||||
|
- name: sync and build
|
||||||
|
run: |
|
||||||
|
uv sync
|
||||||
|
uv build
|
||||||
|
uv run zona --help
|
Loading…
Add table
Add a link
Reference in a new issue