chore: add docs examples for topics and use switch to check message type #520
Workflow file for this run
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
name: On pull request | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Commitlint and Other Shared Build Steps | |
uses: momentohq/standards-and-practices/github-actions/shared-build@gh-actions-v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }} | |
- name: Verify README generation | |
uses: momentohq/standards-and-practices/github-actions/oss-readme-template@gh-actions-v2 | |
with: | |
project_status: official | |
project_stability: stable | |
project_type: sdk | |
sdk_language: Go | |
template_file: ./README.template.md | |
output_file: ./README.md | |
dev_docs_slug: go | |
- name: Verify CONTRIBUTING generation | |
uses: momentohq/standards-and-practices/github-actions/oss-readme-template@gh-actions-v2 | |
with: | |
project_status: official | |
project_stability: stable | |
project_type: other | |
sdk_language: Go | |
template_file: CONTRIBUTING.template.md | |
output_file: ./CONTRIBUTING.md | |
dev_docs_slug: go | |
test: | |
uses: ./.github/workflows/test.yml | |
secrets: | |
auth-token: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }} | |
github-token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }} |