
Collection of common reusable GitHub Action workflows:
Workflow | Purpose |
---|
.github/workflows/dotnet-build | Builds dotnet code and uploads build artifacts. |
.github/workflows/dotnet-test | Runs dotnet tests. |
.github/workflows/dotnet-code-ql | Runs automated dotnet code quality checks. |
.github/workflows/dotnet-release.yml | Create GitHub Release. |
.github/workflows/npm-build.yml | Builds npm code. |
.github/workflows/npm-test.yml | Runs npm tests. |
.github/workflows/javascript-code-ql.yml | Runs automated javascript code quality checks. |
.github/workflows/typescript-code-ql.yml | Runs automated typescript code quality checks. |
uses:sbartholomeusz/gh-actions-common/.github/workflows/dotnet-build.yml@v1with:# Required dotnet versiondotnet_version:'7.0.x'# Path to projectproject_path:'./src/my-project.csproj'# Operating system platform - defaults to 'ubuntu-latest'# See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-github-hosted-runners.os_platform:'ubuntu-latest'# Name of the uploaded build artifactapp_artifact_name:'app-package'
uses:sbartholomeusz/gh-actions-common/.github/workflows/dotnet-test.yml@v1with:# Required dotnet versiondotnet_version:'7.0.x'# Path to solution or projectpath:'./src/my-solution.sln'# Operating system platform - defaults to 'ubuntu-latest'# See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-github-hosted-runners.os_platform:'ubuntu-latest'
permissions:actions:readcontents:readsecurity-events:writeuses:sbartholomeusz/gh-actions-common/.github/workflows/dotnet-code-ql.yml@v1with:# Required dotnet versiondotnet_version:'7.0.x'# Path to the source codepath:'./src'# Operating system platform - defaults to 'ubuntu-latest'# See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-github-hosted-runners.os_platform:'ubuntu-latest'
permissions:contents:writeuses:sbartholomeusz/gh-actions-common/.github/workflows/dotnet-release.yml@v1
uses:sbartholomeusz/gh-actions-common/.github/workflows/npm-build.yml@v1with:# Required node versionnode_version:'16'# Path to source codepath:'./src'# Operating system platform - defaults to 'ubuntu-latest'# See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-github-hosted-runners.os_platform:'ubuntu-latest'
uses:sbartholomeusz/gh-actions-common/.github/workflows/npm-test.yml@v1with:# Required node versionnode_version:'16'# Path to source codepath:'./src'# Operating system platform - defaults to 'ubuntu-latest'# See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-github-hosted-runners.os_platform:'ubuntu-latest'
uses:sbartholomeusz/gh-actions-common/.github/workflows/javascript-code-ql.yml@v1with:# Path to source codepath:'./src'# Operating system platform - defaults to 'ubuntu-latest'# See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-github-hosted-runners.os_platform:'ubuntu-latest'
uses:sbartholomeusz/gh-actions-common/.github/workflows/typescript-code-ql.yml@v1with:# Path to source codepath:'./src'# Operating system platform - defaults to 'ubuntu-latest'# See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job#choosing-github-hosted-runners.os_platform:'ubuntu-latest'