mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
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:
parent
29aa4dd10a
commit
dd81e1e334
2
.github/workflows/backport.yml
vendored
2
.github/workflows/backport.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Backport
|
name: backport
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [closed, labeled]
|
types: [closed, labeled]
|
||||||
|
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@ -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 }}
|
||||||
|
2
.github/workflows/coverity.yml
vendored
2
.github/workflows/coverity.yml
vendored
@ -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
|
||||||
|
@ -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:
|
@ -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: |
|
@ -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
|
2
.github/workflows/lintcommit.yml
vendored
2
.github/workflows/lintcommit.yml
vendored
@ -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]
|
||||||
|
2
.github/workflows/news.yml
vendored
2
.github/workflows/news.yml
vendored
@ -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]
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Release
|
name: release
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '5 5 * * *'
|
- cron: '5 5 * * *'
|
||||||
|
@ -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})
|
@ -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})
|
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user