made some basic structure changes and made some tests too
Test Workflow / test-and-lint (pull_request) Failing after 23s

This commit is contained in:
2026-05-15 22:32:39 -07:00
parent fa6d6a97ba
commit 6bac3e4e74
18 changed files with 139 additions and 101 deletions
-20
View File
@@ -1,20 +0,0 @@
#!/bin/bash
# Check if the lint fix command fails
# If it does, exit with a non-zero status to prevent the commit.
echo "Running lint fix..."
# Replace with your actual lint fix command
# This is just an example, adapt it to your linter and project
npm run lint:fix # e.g., "eslint . --fix"
# Example: Capture the exit code of the command
lint_fix_result=$?
if [ $lint_fix_result -ne 0 ]; then
echo "Linting failed. Commit aborted."
exit 1 # Exit with a non-zero status to prevent the commit
fi
echo "Lint fix completed successfully. Commit allowed."
exit 0 # Exit with a zero status to allow the commit
+26
View File
@@ -0,0 +1,26 @@
name: Test Workflow
on:
pull_request:
branches:
- main
jobs:
test-and-lint:
# Use the label matching your registered runner
runs-on: ubuntu-latest
# Or specify a custom image directly if your runner supports it
container:
image: node:24-alpine
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test