Skip to content

Feature/ci workflow - #10

Merged
4wardAerial merged 7 commits into
developfrom
feature/ci-workflow
Sep 17, 2026
Merged

4wardAerial merged 7 commits into
developfrom
feature/ci-workflow

Conversation

@4wardAerial

@4wardAerial 4wardAerial commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Description

Adds a GitHub Actions workflow for continuous integration, running automatically on pushes and pull requests targeting main and develop. The pipeline performs repository checkout, Node.js environment setup, dependency installation, linting, and test execution with coverage reporting.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Changes Made

  • Added .github/workflows/ci.yml defining the CI job;
  • Configured triggers for push and pull_request events on main and develop branches;
  • Added steps: actions/checkout@v4, actions/setup-node@v4, npm ci, npm run lint, and npm run test -- --coverage;
  • Added coverage/ to .gitignore, since it is a regenerable build artifact and should not be versioned.

How to Test

  1. Confirm the CI workflow appears running under this PR's checks (or in the Actions tab) after each push;
  2. Temporarily introduce a lint violation (e.g. an unused variable) in any .ts file, commit and push to confirm the Lint step fails with the corresponding ESLint error in the log;
  3. Revert the lint violation, then temporarily add a failing test (e.g. expect(1).toBe(2)), commit and push to confirm the Coverage tests step fails with the corresponding Jest assertion error;
  4. Revert the failing test and confirm all steps pass;
  5. Confirm the job is available for selection under Settings → Branches → Require status checks once it has run at least once.

Related Issues

Checklist

  • Self-reviewed my code
  • Added tests that prove the fix is effective or that the feature works
  • Existing local tests pass successfully
  • Updated relevant documentation

@4wardAerial 4wardAerial added the Atividade2 Issues da Atividade 2 label Sep 17, 2026
@4wardAerial
4wardAerial marked this pull request as draft September 17, 2026 12:34
@4wardAerial 4wardAerial removed the Atividade2 Issues da Atividade 2 label Sep 17, 2026
@4wardAerial
4wardAerial marked this pull request as ready for review September 17, 2026 12:57
@4wardAerial
4wardAerial merged commit cfdece5 into develop Sep 17, 2026
1 check passed
@4wardAerial
4wardAerial deleted the feature/ci-workflow branch September 17, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants