Skip to content

Merge pull request #9 from cophilot/8-add-issue-id-to-commit #15

Merge pull request #9 from cophilot/8-add-issue-id-to-commit

Merge pull request #9 from cophilot/8-add-issue-id-to-commit #15

name: Run rust quality checks
on:
push:
branches: ['*']
workflow_call:
inputs:
branch:
required: true
type: string
env:
CARGO_TERM_COLOR: always
jobs:
rust-quality-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ inputs.branch || 'dev' }}
- name: Check formatting
run: ./scripts/format-check
- name: Check for missing comments
run: ./scripts/comment-check
- name: Run linter
run: ./scripts/lint
- name: Run tests
run: ./scripts/test
- name: Merge to master branch
if: ${{ inputs.branch == 'dev' }}
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: master
base: dev
title: Automated New Stable Version
body: This pull request was automatically created by the workflow and contains the latest stable version of the repository.