Merge pull request #35 from Arrow-air/owlot-test-tagging #123
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
## DO NOT EDIT! | |
# This file was provisioned by Terraform | |
# File origin: https://github.com/Arrow-air/tf-github/tree/main/src/templates/rust-all/.github/workflows/sanity_checks.yml | |
name: Sanity checks | |
env: | |
TERM: xterm | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
pull_request: | |
branches: | |
- develop | |
- main | |
jobs: | |
codestyle: | |
name: Code Style Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: make editorconfig-test | |
cspell: | |
name: Spelling Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: make cspell-test | |
md-test: | |
name: Markdown Broken Link Checker | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: make md-test-links | |
toml: | |
name: TOML Format Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: make toml-test | |
commit-msg: | |
if: ${{ github.event_name == 'pull_request' }} | |
name: Commit message Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- run: npx commitlint --from=${{ github.event.pull_request.base.sha }} | |
release-notes: | |
if: ${{ github.event_name == 'pull_request' }} | |
name: Preview Release Notes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Generate Changelog | |
id: changelog | |
uses: mrchief/[email protected] | |
with: | |
previousReleaseTagNameOrSha: ${{ github.event.pull_request.base.sha }} | |
nextReleaseTagName: ${{ github.sha }} | |
nextReleaseName: "Release ${{ steps.tag_version.outputs.new_version }}" | |
- name: Add PR Comment with Changelog Output | |
uses: thollander/actions-comment-pull-request@v1 | |
continue-on-error: true | |
with: | |
message: | | |
<details> | |
<summary>This PR will generate the following release notes when merged:</summary> | |
${{ steps.changelog.outputs.changelog }} | |
</details> | |
comment_includes: 'This PR will generate the following release notes when merged' |