test - 1.0.0 #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run rust quality checks | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
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. |