Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added tests on ci/cd #314

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

feat: added tests on ci/cd #314

wants to merge 5 commits into from

Conversation

chittolinag
Copy link
Contributor

@chittolinag chittolinag commented Feb 25, 2025

  • Run unit tests before publish (needs to succeed, or the publish won't be executed)
  • Run unit tests on PR creations to main

Comment on lines +9 to +11
uses: ./.github/workflows/pre-commit.yml

run-unit-tests:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
uses: ./.github/workflows/pre-commit.yml

run-unit-tests:
uses: ./.github/workflows/run-unit-tests.yml

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions

jobs:
pre-commit:
uses: ./.github/workflows/pre-commit.yml

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Comment on lines 8 to 23
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
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.

1 participant