-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1.16 KB
/
check_rust_quality.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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.