You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.9 KiB
68 lines
1.9 KiB
--- |
|
|
|
name: Test Version Bump Action |
|
|
|
on: |
|
workflow_dispatch: |
|
inputs: |
|
version_number: |
|
description: "New Version" |
|
required: false |
|
|
|
jobs: |
|
test-version-bumps: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
|
|
|
- name: Bump JSON Test |
|
id: test_json |
|
uses: ./version-bump |
|
with: |
|
version: ${{ inputs.version_number }} |
|
file_path: "./version-bump/tests/fixtures/package-lock.json" |
|
|
|
- name: Bump PLIST Test |
|
id: test_plist |
|
uses: ./version-bump |
|
with: |
|
version: ${{ inputs.version_number }} |
|
file_path: "./version-bump/tests/fixtures/Info.plist" |
|
|
|
- name: Bump XML Test |
|
id: test_xml |
|
uses: ./version-bump |
|
with: |
|
version: ${{ inputs.version_number }} |
|
file_path: "./version-bump/tests/fixtures/AndroidManifest.xml" |
|
|
|
- name: Bump Props Test |
|
id: test_props |
|
uses: ./version-bump |
|
with: |
|
version: ${{ inputs.version_number }} |
|
file_path: "./version-bump/tests/fixtures/dir.build.props" |
|
|
|
- name: Bump CSProj Test |
|
id: test_csproj |
|
uses: ./version-bump |
|
with: |
|
version: ${{ inputs.version_number }} |
|
file_path: "./version-bump/tests/fixtures/test.csproj" |
|
|
|
- name: Validate Outputs |
|
run: | |
|
echo "${{ steps.test_json.outputs.status }}" |
|
echo "${{ steps.test_json.outputs.version }}" |
|
|
|
echo "${{ steps.test_plist.outputs.status }}" |
|
echo "${{ steps.test_plist.outputs.version }}" |
|
|
|
echo "${{ steps.test_xml.outputs.status }}" |
|
echo "${{ steps.test_xml.outputs.version }}" |
|
|
|
echo "${{ steps.test_props.outputs.status }}" |
|
echo "${{ steps.test_props.outputs.version }}" |
|
|
|
echo "${{ steps.test_csproj.outputs.status }}" |
|
echo "${{ steps.test_csproj.outputs.version }}"
|
|
|