Skip to content

Update GitHub Actions workflows to include testing #12

@killerwolf

Description

@killerwolf

Background

The current GitHub Actions workflows are well-structured but do not include a test execution step, which is crucial for maintaining code quality and preventing regressions. This issue aims to update the workflows once the testing infrastructure (issue #8) is implemented.

Current Workflows

We have two workflow files:

  • .github/workflows/code-quality.yml: Runs linting and formatting checks
  • .github/workflows/npm-publish.yml: Handles publishing to npm

Tasks

  1. Add a test execution step to the code-quality.yml workflow:
    - name: Run tests
      run: npm test
  2. Add test execution to the npm-publish.yml workflow as a prerequisite to publishing:
    - name: Run tests
      run: npm test
  3. Verify that actions/checkout and actions/setup-node are using the latest versions
  4. Ensure proper configuration for caching dependencies to speed up workflows

Expected Outcome

  • Code quality workflow that verifies linting, formatting, and test coverage
  • Publishing workflow that ensures tests pass before publishing to npm
  • Modern GitHub Actions setup with optimal performance

This change should be implemented after the testing framework is set up (issue #8).

This addresses item #7 from the review in issue #6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions