dev: refactor github workflows

This commit is contained in:
Henrik Lissner 2021-07-31 23:49:37 -04:00
parent 426369b4d3
commit ea1883c6eb
5 changed files with 62 additions and 50 deletions

15
.github/labeler.yml vendored
View file

@ -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

View file

@ -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

View file

@ -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'

View file

@ -1,4 +1,4 @@
name: CI
name: Tests
on:
pull_request:
@ -6,6 +6,7 @@ on:
paths-ignore:
- '**.md'
- '**.org'
- 'docs/**'
- '.dir-locals.el'
- 'LICENSE'
branches:
@ -13,7 +14,7 @@ on:
- develop
jobs:
build:
unix-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
@ -25,6 +26,8 @@ jobs:
version: ${{ matrix.emacs_version }}
- name: Check out doom-emacs
uses: actions/checkout@v2
- 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
@ -37,3 +40,29 @@ jobs:
# FIXME
# name: 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
View 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'