Skip to content

Merge pull request #12 from RounakJoshi09/rounakj/major-ver-warning #21

Merge pull request #12 from RounakJoshi09/rounakj/major-ver-warning

Merge pull request #12 from RounakJoshi09/rounakj/major-ver-warning #21

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: github.ref == 'refs/heads/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.