ci: refactor CI files

Mostly rename file and variable names to be more consistent. This makes
it easier to locate them in the "Actions" tab on github.
This commit is contained in:
dundargoc 2023-11-12 21:40:24 +01:00 committed by dundargoc
parent 29aa4dd10a
commit dd81e1e334
15 changed files with 19 additions and 24 deletions

View File

@ -1,4 +1,4 @@
name: Backport
name: backport
on:
pull_request_target:
types: [closed, labeled]

View File

@ -1,4 +1,4 @@
name: "CodeQL"
name: "codeql"
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}

View File

@ -1,4 +1,4 @@
name: Coverity
name: coverity
on:
schedule:
- cron: '10 0 * * *' # Run every day at 00:10

View File

@ -1,5 +1,4 @@
# Check if any PR needs to run the autogenerate script
name: Autogenerate API docs and types
name: docs
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
@ -8,9 +7,8 @@ on:
- 'src/nvim/eval.lua'
- 'runtime/lua/**.lua'
- 'runtime/doc/**'
jobs:
regen-api-docs-and-types:
docs:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
permissions:

View File

@ -1,17 +1,14 @@
name: Issue Open Check
name: "labeler: issue"
on:
issues:
types: [opened]
jobs:
issue-open-check:
labeler:
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- name: check issue title
id: check-issue
uses: actions/github-script@v7
with:
script: |

View File

@ -1,9 +1,9 @@
name: "Pull Request Labeler"
name: "labeler: PR"
on:
pull_request_target:
types: [opened]
jobs:
triage:
labeler:
runs-on: ubuntu-latest
permissions:
contents: read
@ -37,4 +37,4 @@ jobs:
needs: ["triage", "type-scope"]
permissions:
pull-requests: write
uses: ./.github/workflows/add-reviewers.yml
uses: ./.github/workflows/reviewers_add.yml

View File

@ -1,4 +1,4 @@
name: "Commit Linter"
name: "lintcommit"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

View File

@ -1,4 +1,4 @@
name: "news.txt check"
name: "news.txt"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

View File

@ -1,4 +1,4 @@
name: Release
name: release
on:
schedule:
- cron: '5 5 * * *'

View File

@ -1,4 +1,4 @@
name: "Request reviews"
name: "reviewers: add"
on:
pull_request_target:
types: [labeled, ready_for_review, reopened]
@ -15,5 +15,5 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const script = require('./.github/scripts/reviews.js')
const script = require('./.github/scripts/reviewers_add.js')
await script({github, context})

View File

@ -1,4 +1,4 @@
name: "Remove reviewers"
name: "reviewers: remove"
on:
pull_request_target:
types: [converted_to_draft, closed]
@ -13,5 +13,5 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const script = require('./.github/scripts/remove-reviewers.js')
const script = require('./.github/scripts/reviewers_remove.js')
await script({github, context})

View File

@ -104,14 +104,14 @@ jobs:
{ runner: ubuntu-22.04, flavor: tsan, cc: clang, flags: -D ENABLE_TSAN=ON },
{ runner: ubuntu-22.04, cc: gcc },
{ runner: macos-12, cc: clang, flags: -D CMAKE_FIND_FRAMEWORK=NEVER, deps_flags: -D CMAKE_FIND_FRAMEWORK=NEVER },
{ runner: ubuntu-22.04, flavor: functionaltest-lua, cc: gcc, deps_flags: -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON, flags: -D PREFER_LUA=ON },
{ runner: ubuntu-22.04, flavor: puc-lua, cc: gcc, deps_flags: -D USE_BUNDLED_LUAJIT=OFF -D USE_BUNDLED_LUA=ON, flags: -D PREFER_LUA=ON },
]
test: [unittest, functionaltest, oldtest]
exclude:
- test: unittest
build: { flavor: tsan }
- test: unittest
build: { flavor: functionaltest-lua }
build: { flavor: puc-lua }
- test: oldtest
build: { flavor: tsan }
runs-on: ${{ matrix.build.runner }}