dev: refactor github workflows
This commit is contained in:
parent
426369b4d3
commit
ea1883c6eb
5 changed files with 62 additions and 50 deletions
15
.github/labeler.yml
vendored
15
.github/labeler.yml
vendored
|
@ -1,15 +0,0 @@
|
||||||
# For workflows/labeler.yml
|
|
||||||
|
|
||||||
"re:docs": '*.+(md|org)'
|
|
||||||
|
|
||||||
":core": ['core/*.el', 'docs/*']
|
|
||||||
":core lib": 'core/autoload/**/*.el'
|
|
||||||
"re:packages": '**/packages.el'
|
|
||||||
|
|
||||||
"re:bin": ['bin/**/*', '!bin/doom']
|
|
||||||
"re:bin/doom": ['core/core-cli.el', 'core/cli/*', 'bin/doom']
|
|
||||||
"re:bin/doom:doctor": '**/doctor.el'
|
|
||||||
"re:bin/doom:env": 'core/cli/env.el'
|
|
||||||
|
|
||||||
|
|
||||||
# TODO automate generation of labels for modules
|
|
19
.github/workflows/labeler.yml
vendored
19
.github/workflows/labeler.yml
vendored
|
@ -1,19 +0,0 @@
|
||||||
name: 'Auto-label Issues/PRs'
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [opened]
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: labeler
|
|
||||||
steps:
|
|
||||||
# - name: Checkout
|
|
||||||
# uses: actions/checkout@v2
|
|
||||||
- uses: actions/labeler@main
|
|
||||||
with:
|
|
||||||
repo-token: ${{ github.token }}
|
|
||||||
# - name: Synchronize labels
|
|
||||||
# uses: julb/action-manage-label@v1
|
|
||||||
# with:
|
|
||||||
# from: .github/labels.yml
|
|
||||||
# skip_delete: false
|
|
14
.github/workflows/lock.yml
vendored
14
.github/workflows/lock.yml
vendored
|
@ -1,14 +0,0 @@
|
||||||
name: 'Lock Threads'
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 * * * *'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lock:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: dessant/lock-threads@v2
|
|
||||||
with:
|
|
||||||
github-token: ${{ github.token }}
|
|
||||||
issue-lock-inactive-days: '90'
|
|
33
.github/workflows/test.yml
vendored
33
.github/workflows/test.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: CI
|
name: Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -6,6 +6,7 @@ on:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- '**.org'
|
- '**.org'
|
||||||
|
- 'docs/**'
|
||||||
- '.dir-locals.el'
|
- '.dir-locals.el'
|
||||||
- 'LICENSE'
|
- 'LICENSE'
|
||||||
branches:
|
branches:
|
||||||
|
@ -13,7 +14,7 @@ on:
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
unix-test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -25,6 +26,8 @@ jobs:
|
||||||
version: ${{ matrix.emacs_version }}
|
version: ${{ matrix.emacs_version }}
|
||||||
- name: Check out doom-emacs
|
- name: Check out doom-emacs
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up test Doom profile
|
||||||
|
run: bin/doom sync --profile test
|
||||||
- name: Set up test Doom profile
|
- name: Set up test Doom profile
|
||||||
run: bin/doom test
|
run: bin/doom test
|
||||||
- name: Cache package builds
|
- name: Cache package builds
|
||||||
|
@ -37,3 +40,29 @@ jobs:
|
||||||
# FIXME
|
# FIXME
|
||||||
# name: Compile
|
# name: Compile
|
||||||
# run: "bin/doom -y compile"
|
# run: "bin/doom -y compile"
|
||||||
|
|
||||||
|
windows-test:
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
emacs-version: [27.1, 27.2, snapshot]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.6'
|
||||||
|
architecture: 'x64'
|
||||||
|
- uses: jcs090218/setup-emacs-windows@master
|
||||||
|
with:
|
||||||
|
version: ${{ matrix.emacs-version }}
|
||||||
|
- name: Set up test Doom profile
|
||||||
|
run: bin/doom sync --profile test
|
||||||
|
- name: Set up test Doom profile
|
||||||
|
run: bin/doom test
|
||||||
|
- name: Cache package builds
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: .local/straight/repos
|
||||||
|
key: ${{ runner.os }}-build-doom-packages-${{ hashFiles('**/packages.el') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-doom-packages-
|
||||||
|
|
31
.github/workflows/triage.yml
vendored
Normal file
31
.github/workflows/triage.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: Lock resolved or closed threads after 90 days
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 * * * *' # hourly
|
||||||
|
jobs:
|
||||||
|
lock:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v3
|
||||||
|
with:
|
||||||
|
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove the label or reply or this will be auto-closed in 7 days.'
|
||||||
|
exempt-issue-labels:
|
||||||
|
- "needs-triage"
|
||||||
|
- "backlog"
|
||||||
|
- "2. status:confirmed"
|
||||||
|
exempt-pr-labels:
|
||||||
|
- "needs-triage"
|
||||||
|
- "backlog"
|
||||||
|
- "2. status:confirmed"
|
||||||
|
- "2. status:archived"
|
||||||
|
- "2. status:resolved-temporarily"
|
||||||
|
- "2. status:waiting"
|
||||||
|
stale-issue-label: stale
|
||||||
|
stale-pr-label: stale
|
||||||
|
exempt-milestones: true
|
||||||
|
exempt-assignees: true
|
||||||
|
- uses: dessant/lock-threads@v2
|
||||||
|
with:
|
||||||
|
github-token: ${{ github.token }}
|
||||||
|
issue-lock-inactive-days: '90'
|
||||||
|
pr-lock-inactive-days: '90'
|
Loading…
Add table
Add a link
Reference in a new issue