diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 8253a489f..000000000 --- a/.github/labeler.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 23983530e..000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml deleted file mode 100644 index c32330481..000000000 --- a/.github/workflows/lock.yml +++ /dev/null @@ -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' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 602cb4bac..b8c782748 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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- diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml new file mode 100644 index 000000000..33c253823 --- /dev/null +++ b/.github/workflows/triage.yml @@ -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'