Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 47 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
run: cargo make schema

- name: Generate documentations
run: cargo make docs-generate
run: cargo make docs

- name: Verify changed docs files
uses: tj-actions/verify-changed-files@v20
Expand All @@ -342,10 +342,55 @@
echo "‣ Changes in $file:"
git diff HEAD $file
done
echo "Please generate docs using \`cargo make docs-generate\` then commit this new documentation."
echo "Please generate docs using \`cargo make docs\` then commit this new documentation."
exit 1

check-readme-updated:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v5

- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-

- name: Setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install cargo make
uses: davidB/rust-cargo-make@v1

- name: Generate readme
run: cargo make readme

- name: Verify changed readme files
uses: tj-actions/verify-changed-files@v20
id: verify-changed-readme-files
with:
files: |
README.md

- name: Run step only when files change.
if: steps.verify-changed-readme-files.outputs.files_changed == 'true'
run: |
echo "❌ README.md has been updated."
echo " Changed files : ${{ steps.verify-changed-readme-files.outputs.changed_files }}"
git diff --name-only | grep 'README.md' | while read file; do
echo "‣ Changes in $file:"
git diff HEAD $file
done
echo "Please generate readme using \`cargo make readme\` then commit this new documentation."
exit 1

lint-typos:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-22.04
steps:
- name: Check out repository
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = {
"@semantic-release/exec",
{
prepareCmd:
"cargo make schema && cargo make docs-generate && cargo make release-wasm",
"cargo make schema && cargo make docs && cargo make release-wasm",
},
],
[
Expand Down
Loading