test(action): overhaul test workflow for multi-language and dual auth… #55
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: Test increment version | |
| on: [push] | |
| jobs: | |
| test-python: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'candango/increment-version' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create mock Python version file | |
| run: | | |
| echo '__version__ = (0, 0, 1)' > mock_init.py | |
| - uses: ./ | |
| with: | |
| app-id: ${{ vars.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| language: python | |
| file-path: mock_init.py | |
| is-prerelease: true | |
| prerelease-type: a | |
| - name: Verify Python update | |
| run: | | |
| grep "__version__ = (0, 0, 2, 'a1')" mock_init.py | |
| echo "Python Ghost Update Verified!" | |
| test-js: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'candango/increment-version' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./ | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| language: javascript | |
| is-prerelease: false | |
| - name: Verify JS update | |
| run: | | |
| cat package.json | grep '"version":' | |
| echo "JS Ghost Update Verified!" |