Update .gitea/workflows/ci.yml
Signed-off-by: Javier Puig <javier.puig.diaz@gmail.com>
This commit is contained in:
1 parent
fee3d534a8
commit
fe29763fab
1 file changed
+3
-21
+3
-21
@@ -1,33 +1,15 @@
|
||||
name: fbird CI
|
||||
|
||||
# Defines when the workflow runs: on every push and pull request to the main branch
|
||||
on:
|
||||
push:
|
||||
branches: [ "main", "master" ]
|
||||
pull_request:
|
||||
branches: [ "main", "master" ]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
|
||||
steps:
|
||||
# 1. Check out your repository code into the runner
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# 2. Verify that your core files exist and are structured correctly
|
||||
|
||||
- name: Verify Project Structure
|
||||
run: |
|
||||
echo "Checking repository files..."
|
||||
ls -la
|
||||
if [ ! -f "index.html" ]; then
|
||||
echo "Error: index.html missing!"
|
||||
exit 1
|
||||
fi
|
||||
echo "Project structure verified successfully."
|
||||
|
||||
# 3. Optional: HTML/Syntax validation check (using a lightweight linter or checker)
|
||||
- name: Basic Asset Check
|
||||
run: |
|
||||
echo "Assets look good. Ready for deployment!"
|
||||
echo "Project structure verified successfully."
|
||||
Reference in new issue
Block a user