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: on:
pull_request_target: pull_request_target:
types: [closed, labeled] types: [closed, labeled]

View File

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

View File

@ -1,4 +1,4 @@
name: Coverity name: coverity
on: on:
schedule: schedule:
- cron: '10 0 * * *' # Run every day at 00:10 - 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: docs
name: Autogenerate API docs and types
on: on:
pull_request: pull_request:
types: [opened, synchronize, reopened, ready_for_review] types: [opened, synchronize, reopened, ready_for_review]
@ -8,9 +7,8 @@ on:
- 'src/nvim/eval.lua' - 'src/nvim/eval.lua'
- 'runtime/lua/**.lua' - 'runtime/lua/**.lua'
- 'runtime/doc/**' - 'runtime/doc/**'
jobs: jobs:
regen-api-docs-and-types: docs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
permissions: permissions:

View File

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

View File

@ -1,9 +1,9 @@
name: "Pull Request Labeler" name: "labeler: PR"
on: on:
pull_request_target: pull_request_target:
types: [opened] types: [opened]
jobs: jobs:
triage: labeler:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: read
@ -37,4 +37,4 @@ jobs:
needs: ["triage", "type-scope"] needs: ["triage", "type-scope"]
permissions: permissions:
pull-requests: write 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: on:
pull_request: pull_request:
types: [opened, synchronize, reopened, ready_for_review] types: [opened, synchronize, reopened, ready_for_review]

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
name: "Remove reviewers" name: "reviewers: remove"
on: on:
pull_request_target: pull_request_target:
types: [converted_to_draft, closed] types: [converted_to_draft, closed]
@ -13,5 +13,5 @@ jobs:
uses: actions/github-script@v7 uses: actions/github-script@v7
with: with:
script: | script: |
const script = require('./.github/scripts/remove-reviewers.js') const script = require('./.github/scripts/reviewers_remove.js')
await script({github, context}) 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, flavor: tsan, cc: clang, flags: -D ENABLE_TSAN=ON },
{ runner: ubuntu-22.04, cc: gcc }, { 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: 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] test: [unittest, functionaltest, oldtest]
exclude: exclude:
- test: unittest - test: unittest
build: { flavor: tsan } build: { flavor: tsan }
- test: unittest - test: unittest
build: { flavor: functionaltest-lua } build: { flavor: puc-lua }
- test: oldtest - test: oldtest
build: { flavor: tsan } build: { flavor: tsan }
runs-on: ${{ matrix.build.runner }} runs-on: ${{ matrix.build.runner }}