maint/CICD ~ job naming improvement (decreased jargon) + feature name normalization

This commit is contained in:
Roy Ivy III 2020-08-10 10:24:26 -05:00
parent bb4b20db81
commit 63315747a5

View file

@ -17,14 +17,14 @@ env:
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
style: code_format:
name: Style name: Style/format
runs-on: ${{ matrix.job.os }} runs-on: ${{ matrix.job.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
job: job:
- { os: ubuntu-latest , features: unix } - { os: ubuntu-latest , features: feat_os_unix }
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Initialize workflow variables - name: Initialize workflow variables
@ -58,16 +58,16 @@ jobs:
# * convert any warnings to GHA UI annotations; ref: <https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message> # * convert any warnings to GHA UI annotations; ref: <https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message>
S=$(find tests -name "*.rs" -print0 | xargs -0 cargo fmt -- --check) && printf "%s\n" "$S" || { printf "%s\n" "$S" | sed -E -n "s/^Diff[[:space:]]+in[[:space:]]+${PWD//\//\\/}\/(.*)[[:space:]]+at[[:space:]]+[^0-9]+([0-9]+).*$/::warning file=\1,line=\2::WARNING: \`cargo fmt\`: style violation/p" ; } S=$(find tests -name "*.rs" -print0 | xargs -0 cargo fmt -- --check) && printf "%s\n" "$S" || { printf "%s\n" "$S" | sed -E -n "s/^Diff[[:space:]]+in[[:space:]]+${PWD//\//\\/}\/(.*)[[:space:]]+at[[:space:]]+[^0-9]+([0-9]+).*$/::warning file=\1,line=\2::WARNING: \`cargo fmt\`: style violation/p" ; }
clippy: code_warnings:
name: Clippy name: Style/warnings
runs-on: ${{ matrix.job.os }} runs-on: ${{ matrix.job.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
job: job:
- { os: ubuntu-latest , features: unix } - { os: ubuntu-latest , features: feat_os_unix }
- { os: macos-latest , features: macos } - { os: macos-latest , features: feat_os_macos }
- { os: windows-latest , features: windows } - { os: windows-latest , features: feat_os_windows }
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Initialize workflow variables - name: Initialize workflow variables