Files
auto-changelog/.github/workflows/test.yml
T
Ardalan Amini 9bd6b8698c refactor: improve changelog logic (#197)
* refactor: improve changelog logic

Signed-off-by: Ardalan Amini <[email protected]>

* chore: update license comment formatting across all files

Replaced `/*` with `/**` for correct JSDoc-style license comments in all files.
This ensures consistency and compatibility with documentation tools that rely on JSDoc conventions.

Signed-off-by: Ardalan Amini <[email protected]>

* test: add unit tests for inputs

Signed-off-by: Ardalan Amini <[email protected]>

* test: add unit tests for utils

Signed-off-by: Ardalan Amini <[email protected]>

* test: add unit tests for outputs

Signed-off-by: Ardalan Amini <[email protected]>

* test: add unit tests for nodes

Signed-off-by: Ardalan Amini <[email protected]>

* test: add missing unit tests

Signed-off-by: Ardalan Amini <[email protected]>

* chore: address PR comments

Signed-off-by: Ardalan Amini <[email protected]>

* chore: address PR comments

Signed-off-by: Ardalan Amini <[email protected]>

---------

Signed-off-by: Ardalan Amini <[email protected]>
2025-06-07 15:37:31 +03:30

124 lines
2.7 KiB
YAML

name: Test
on : # rebuild any PRs and main branch changes
push :
branches:
- master
pull_request :
workflow_call:
jobs:
build : # make sure build/ci work properly
name : Build
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v4
- name: Use PNPM
uses: pnpm/action-setup@v4
with:
version: 10
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
cache : pnpm
node-version: 20
- name: Install dependencies
run : pnpm i
- name: Build using TypeScript
run : pnpm build
- name: Package using ncc
run : pnpm package
lint : # make sure build/ci work properly
name : Lint
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v4
- name: Use PNPM
uses: pnpm/action-setup@v4
with:
version: 10
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
cache : pnpm
node-version: 20
- name: Install dependencies
run : pnpm i
- name: Check code styles
run : pnpm lint
test : # make sure build/ci work properly
name : Test
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v4
- name: Use PNPM
uses: pnpm/action-setup@v4
with:
version: 10
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
cache : pnpm
node-version: 20
- name: Install dependencies
run : pnpm i
- name: Type check unit tests
run : pnpm test:types
- name: Run unit tests
run : pnpm test:coverage
live-test : # make sure the action works on a clean machine without building
name : Live Test
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v4
- name: Changelog
uses: ./
with:
semver : ${{ startsWith(github.ref, 'refs/tags/') }}
mention-new-contributors: ${{ github.ref_protected }}
live-test-with-inputs: # make sure the action works on a clean machine without building
name : Live Test with inputs
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v4
- name: Changelog
uses: ./
with:
commit-types : |
feat: Feature
default-commit-type : Default Type
mention-authors : false
mention-new-contributors: false
include-compare-link : false
semver : false