-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): Release v.3.0.0 [TSD-1529] (#25)
* feat: First pass at tagging automation * feat: Added poetry install [TSD-1125] * fix: Add ignore for advisory 52983 (#22) * fix: Add temporary ignore for advisories 53310 and 53332 * feat!: Update poetry version * fix: Update GHA repo refs * feat: Try running build in AL2 container * feat: Use aws sam build image * feat: Switch back to amazonlinux * fix: Add another missing dependency * feat: Add one more dep * skip caching for now * skip python setup step as well * fix: Install python when running tests * test * Add pip install * feat: Switch to aws lambda 3.8 runtime container * fix: Bade work dir maybe? * feat: Add debug step * fix: Try removing work dir specification * fix: Add missing checkout step * Revert "fix: Try removing work dir specification" This reverts commit 6decf99. * fix: Add install of tar and gzip * feat: Broke python dep install into multiple actions * fix: Remove bad input passing * fix: More bad arg passing * fix: Added npm install step * fix: Correct commands to install npm * feat: Now using openapi-python-client 0.13.2 by default (#23) * feat!: Entire predeploy script can now be specified [TSD-1528] * feat: Update default poetry version and resolve serverless build errors (#24) * fix: Post merge issue [TSD-1528] * feat: V3 all the things! (including GH-provided actions/* actions) * fix: Updated to latest versions of things * fix: Using correct version pins, using poetry install action * fix: Bump setup-python action to 4.x * fix: Added step to correct prerelease version formatting [TSD-1529] * feat: Added PAT passing to allow auto-tags to kickoff builds * fix: Bad setup-node version * test: Run GHA in native runner * fix: Switch to normal python setup action * feat: Re-add manual generation of requirements.txt * fix: Removed some commented out code * fix: Exclude dev dependencies for serverless deploy * feat: Add python version inputs to all relevant workflows [TSD-1687] (#26) * feat: Enforce python project coverage [TSD-1611] (#27) * feat: Added python version inputs/passing to all relevant workflows and actions [TSD-1687] * feat: Added enforcement of 100% code coverage [TSD-1611] * fix: Add input type * feat: Add input type [TSD-1611] * fix: Change run check action pin [TSD-1611] * fix: Add shell [TSD-1611] * fix: Check skip option as string [TSD-1611] * fix: Correct error in skip logic [TSD-1611] * chore: Switch branch refs in prep for PR [TSD-1611] --------- Co-authored-by: Ethan Mann <[email protected]> --------- Co-authored-by: Ben S <[email protected]> Co-authored-by: Ethan Mann <[email protected]>
- Loading branch information
1 parent
e4d6f44
commit 9147234
Showing
21 changed files
with
309 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Bump Version and Tag | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
python-version: | ||
description: The version of python to install/use | ||
type: string | ||
required: false | ||
default: "3.8" | ||
secrets: | ||
GH_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
bump-version-and-commit: | ||
name: Bump Project Version, Commit, and Tag | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Install and Configure Poetry | ||
uses: triaxtec/github-actions/python/install-and-configure-poetry@v3 | ||
with: | ||
poetry-version: 1.4.1 | ||
working-directory: ${{inputs.working-directory}} | ||
|
||
- name: Bump Project Version | ||
id: bump-version | ||
uses: triaxtec/github-actions/python/bump-project-version@v3 | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "chore: Bump version to v.${{ steps.bump-version.outputs.new-project-version }}" | ||
tagging_message: v.${{ steps.bump-version.outputs.new-project-version }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,17 +17,17 @@ jobs: | |
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Add SSH key so cargo can access private repos | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.ssh-private-key }} | ||
|
||
- name: Setup Rust and Install Dependencies | ||
uses: triaxtec/github-actions/rust/setup@v2 | ||
uses: triaxtec/github-actions/rust/setup@v3 | ||
|
||
- name: Build and Upload | ||
uses: triaxtec/github-actions/rust/build-and-upload@v2 | ||
uses: triaxtec/github-actions/rust/build-and-upload@v3 | ||
with: | ||
binary_name: eat |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Bump Project Version | ||
description: Bumps the version of the project - defaults to bumping the release candidate number. Outputs the new version | ||
|
||
inputs: | ||
rule: | ||
description: The version bump rule to run. | ||
required: false | ||
default: "prerelease" | ||
|
||
outputs: | ||
new-project-version: | ||
description: The version of the current project | ||
value: ${{ steps.get-version.outputs.project-version }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Bump Project Version | ||
id: bump-version | ||
shell: bash | ||
run: poetry version ${{ inputs.rule }} | ||
|
||
- name: Fix Prerelease Version Format | ||
if: ${{ inputs.rule == 'prerelease' }} | ||
shell: bash | ||
run: poetry version $(echo "$(poetry version -s)" | sed 's/rc/-rc./g') | ||
|
||
- name: Get New Project Version | ||
id: get-version | ||
uses: triaxtec/github-actions/python/get-project-version@v3 |
Oops, something went wrong.