Repository for the common library's GitHub actions.
It assumes the projects use hatch as the management tool.
There are three reusable action:
- Code lint
- Run tests
- Release Library
Example of code lint workflow usage:
name: Code Lint
on: push
jobs:
code-lint:
name: Code Lint
uses: Matter-Tech/matter-library-actions/.github/workflows/lint.yaml@v2Example of run tests workflow usage:
name: Test suite
on: push
jobs:
run-test:
name: Run tests
uses: Matter-Tech/matter-library-actions/.github/workflows/run-tests.yaml@v2Example of release workflow usage:
name: Prepare Release
on:
workflow_dispatch:
inputs:
release-type:
description: 'Release type? (major/minor/fix)'
required: true
default: ''
jobs:
release-version:
name: Release new version
uses: Matter-Tech/matter-library-actions/.github/workflows/release.yaml@v2
with:
release-type: ${{github.event.inputs.release-type}}