feat: Initial release #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| - pull_request | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: DeLaGuardo/setup-clojure@9.5 | |
| with: | |
| clj-kondo: '2022.10.14' | |
| bb: 1.0.164 | |
| - name: clj-kondo | |
| run: | | |
| clj-kondo --lint src --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}' | |
| - name: Unit Tests | |
| run: make test | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Dry Run | |
| run: make dryrun | |
| id: integration-tests | |
| env: | |
| INPUT_BUMP_VERSION_SCHEME: minor | |
| INPUT_MAX_COMMITS: 5 | |
| INPUT_TAG_PREFIX: v | |
| INPUT_RELEASE_NAME: <RELEASE_TAG> | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check Output Parameters | |
| run: | | |
| echo "Got tag version ${{ steps.integration-tests.outputs.tag_name }}" | |
| echo "Got version ${{ steps.integration-tests.outputs.version }}" | |
| echo "Got body ${{ steps.integration-tests.outputs.body }}" | |
| - name: Container Builds | |
| run: docker build . -t step-security/release-on-push-action | |
| - name: Container Test | |
| run: docker run -e INPUT_BUMP_VERSION_SCHEME -e INPUT_MAX_COMMITS -e INPUT_TAG_PREFIX -e INPUT_RELEASE_NAME -e GITHUB_API_URL -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_TOKEN rymndhng/release-on-push-action --dry-run | |
| env: | |
| INPUT_BUMP_VERSION_SCHEME: minor | |
| INPUT_MAX_COMMITS: 5 | |
| INPUT_TAG_PREFIX: v | |
| INPUT_RELEASE_NAME: <RELEASE_TAG> | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Disable me if needed to debug curl/post action | |
| # create-prerelease: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: rymndhng/release-on-push-action@debug-npe | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # CREATE_DRAFT: true | |
| # with: | |
| # bump_version_scheme: patch |