Skip to content

Commit

Permalink
ensure lint, format-check, apply patches failures don't prevent us fr…
Browse files Browse the repository at this point in the history
…om attempting the build
  • Loading branch information
TieDyedSheep committed May 23, 2024
1 parent dc5e6f9 commit d05de5b
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,23 @@ jobs:
echo "Dependency installation complete."
- name: Lint
id: lint
run: |
echo "Running Linter..."
npm run lint
echo "Running Linter complete."
continue-on-error: true

- name: Format check
id: format_check
run: |
echo "Running format check..."
npm run format-check
echo "Format check complete."
- name: Build
run: |
echo "Building the code..."
npm run build
echo "Build complete."
- name: Unit Tests
run: |
echo "Running Unit Tests..."
npm test
echo "Unit Tests complete."
continue-on-error: true

- name: Test apply patches
id: test_apply_patches
run: |
set -e
shopt -s nullglob
Expand All @@ -66,3 +59,22 @@ jobs:
done
echo "All patches applied successfully."
fi
continue-on-error: true

- name: Build
id: build
run: |
echo "Building the code..."
npm run build
echo "Build complete."
- name: Unit Tests
id: unit_tests
run: |
echo "Running Unit Tests..."
npm test
echo "Unit Tests complete."
- name: Check if any step failed
if: ${{ steps.lint.outcome == 'failure' || steps.format_check.outcome == 'failure' || steps.test_apply_patches.outcome == 'failure' }}
run: exit 1

0 comments on commit d05de5b

Please sign in to comment.