Skip to content

chore: add unit tests for expiration objects and expand all_data_read… #194

chore: add unit tests for expiration objects and expand all_data_read…

chore: add unit tests for expiration objects and expand all_data_read… #194

name: on-push-to-main
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: write
pull-requests: write
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
name: Style & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint (rustfmt and clippy)
run: make lint
generate_readme:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v3
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
- name: Generate README
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2
with:
project_status: official
project_stability: beta
project_type: sdk
sdk_language: Rust
template_file: ./README.template.md
output_file: ./README.md
dev_docs_slug: rust
- name: Generate Example README
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2
with:
project_status: official
project_stability: beta
project_type: other
template_file: ./example/README.template.md
output_file: ./example/README.md
- name: Generate Rust Example README
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2
with:
project_status: official
project_stability: beta
project_type: other
template_file: ./example/rust/README.template.md
output_file: ./example/rust/README.md
- name: Generate CDK Lambda Example README
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2
with:
project_status: official
project_stability: beta
project_type: other
template_file: ./example/aws/cdk-lambda/README.template.md
output_file: ./example/aws/cdk-lambda/README.md
- name: Generate Zip Lambda Example README
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2
with:
project_status: official
project_stability: beta
project_type: other
template_file: ./example/aws/zip-lambda/README.template.md
output_file: ./example/aws/zip-lambda/README.md
release-please:
name: Release Please
runs-on: ubuntu-latest
needs: [generate_readme]
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
needs: [release-please]
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
if: ${{ needs.release-please.outputs.release_created == 'true' }}
steps:
- name: Setup repo
uses: actions/checkout@v3
with:
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }}
- name: Login to crates.io
run: cargo login $CARGO_REGISTRY_TOKEN
- name: Publish
run: |
make publish