diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a355b5a..792578f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,9 +40,34 @@ jobs: - name: Run Unit Tests run: python -m unittest -v + test-action: + name: Test Github Action + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + + - name: Get Changelog Information + uses: ./ + id: yaclog-show + with: + changelog-path: 'tests/Test-Changelog.md' + + - name: Fail Outputs + if: > + !( + steps.yaclog-show.outputs.name == '0.13.0 "Aquarius"' && + steps.yaclog-show.outputs.header == '0.13.0 "Aquarius" - 1970-04-11 [YANKED]' && + steps.yaclog-show.outputs.version == '0.13.0' && + endsWith(steps.yaclog-show.outputs.changelog, 'tests/Test-Changelog.md') && + hashFiles(steps.yaclog-show.outputs.body-file) == '33b42eab899b0ff3b0e2a0647718cf9bf748af40e5e9a7c6af3642b35001223a' + ) + run: 'false' # fail the run + build: name: Build Distribution - needs: test + needs: + - test + - test-action runs-on: ubuntu-22.04 outputs: body-file: ${{ steps.yaclog-show.outputs.body-file }} diff --git a/tests/Test-Changelog.md b/tests/Test-Changelog.md new file mode 100644 index 0000000..c0ca185 --- /dev/null +++ b/tests/Test-Changelog.md @@ -0,0 +1,40 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## 0.13.0 "Aquarius" - 1970-04-11 [YANKED] + +Yanked due to issues with oxygen tanks, currently investigating + +### Added + +- Extra propellant in preparation for future versions + +### Changed + +- Replaced Ken Mattingly +- Stirred oxygen tanks + +## 0.12.0 "Intrepid" - 1969-11-14 + +### Added + +- New ALSEP package for surface science +- Color cameras +- Surface rendezvous with Surveyor 3 + +### Fixed + +- 1201/1202 alarm distracting crew during landing + +### Known Issues + +- Lightning strike during launch: No effect on performance + +## 0.11.0 "Eagle" - 1969-07-20 + +Initial stable release + +### Changed + +- Fully fueled lander to allow landing on the lunar surface \ No newline at end of file