mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-02 14:38:47 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
74 lines
1.6 KiB
YAML
74 lines
1.6 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@v2
|
|
with:
|
|
version: 8
|
|
|
|
- name: Use Node.js 20
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
cache : pnpm
|
|
node-version: 20
|
|
|
|
- name: Install dependencies
|
|
run : pnpm i
|
|
|
|
- name: Check code styles
|
|
run : pnpm lint
|
|
|
|
- name: Build using TypeScript
|
|
run : pnpm build
|
|
|
|
- name: Package using ncc
|
|
run : pnpm package
|
|
|
|
test : # make sure the action works on a clean machine without building
|
|
name : 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 }}
|
|
|
|
test-with-inputs: # make sure the action works on a clean machine without building
|
|
name : 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
|