CI: chore: rename jobs and workflow files

This commit is contained in:
João Marcos P. Bezerra 2024-11-17 19:04:23 -03:00 committed by João Marcos
parent 48f83e75f7
commit 534d39c069
2 changed files with 11 additions and 12 deletions

View File

@ -1,4 +1,8 @@
name: create-draft-release-with-artifacts # we have two workflows for releases, this is the manual one to be triggered
# in the Actions tab in the repository
#
# the automatic one runs in another workflow and checks for tag pushes
name: manual-trigger-draft-release
on: on:
workflow_dispatch: workflow_dispatch:
@ -8,8 +12,7 @@ on:
required: true required: true
jobs: jobs:
github-release: create-draft-release-from-manual-trigger:
name: github-release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout

View File

@ -1,4 +1,4 @@
name: PR checks name: PR workflow
on: on:
push: push:
@ -11,8 +11,7 @@ on:
- "*.md" - "*.md"
jobs: jobs:
clippy-lints-check: clippy-checks:
name: clippy-lints-check
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -24,7 +23,6 @@ jobs:
cargo +stable clippy -- -D warnings cargo +stable clippy -- -D warnings
rustfmt-check: rustfmt-check:
name: rustfmt-check
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@ -35,11 +33,10 @@ jobs:
rustup toolchain install nightly --profile minimal -c rustfmt rustup toolchain install nightly --profile minimal -c rustfmt
cargo +nightly fmt -- --check cargo +nightly fmt -- --check
github-release: automated-draft-release:
name: github-release
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
needs: build-and-test needs: build-artifacts-and-run-tests
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -58,8 +55,7 @@ jobs:
draft: true draft: true
files: release/ouch-* files: release/ouch-*
build-and-test: build-artifacts-and-run-tests:
name: build-and-test
runs-on: ${{ matrix.os || 'ubuntu-latest' }} runs-on: ${{ matrix.os || 'ubuntu-latest' }}
env: env:
CARGO: cargo CARGO: cargo