Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Tests

on:
pull_request:
jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
with:
node-version-file: .node-version
cache: npm

- name: Install Dependencies
id: npm-ci
run: npm ci

- name: Check Code Formatting
id: format-check
run: npm run format:check

- name: Lint Code
id: npm-lint
run: npm run lint

- name: Build and Bundle
id: npm-bundle
run: npm run bundle

- name: Check dist Directory
id: check-dist
run: |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
uses: ./

- name: Print Environment Output
id: output-env
run: |
echo "Environment: ${{ steps.test-action.outputs.environment }}"

- name: Print Version Output
id: output-version
run: |
echo "Next Version: ${{ steps.test-action.outputs.nextVersion }}"

- name: Print Old Version Output
id: output-old-version
run: |
echo "Old Version: ${{ steps.test-action.outputs.oldVersion }}"

- name: Print Version Change Type
id: output-change-type
run: |
echo "Version Change: ${{ steps.test-action.outputs.versionChangeType }}"

- name: Print Prerelease Status
id: output-prerelease
run: |
echo "Prerelease: ${{ steps.test-action.outputs.prerelease }}"
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
npm run format:check
npm run lint
npm run format && npm run lint
16 changes: 0 additions & 16 deletions .prettierrc.json

This file was deleted.

10 changes: 10 additions & 0 deletions dist/const.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/const.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions dist/helpers/branchbasestrategy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/helpers/branchbasestrategy.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/helpers/detectcommitversionchange.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/helpers/detectcommitversionchange.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/helpers/getcommitsmessage.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading