Skip to content

[#master] 1.0.0 - Merge branch 'dev' #16

[#master] 1.0.0 - Merge branch 'dev'

[#master] 1.0.0 - Merge branch 'dev' #16

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.