Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Commit 768aeb9

Browse files
author
Taliesin Millhouse
authored
build: github actions (#3)
- Updated depdendabot schedule to 17:00 UTC. - Removed semantic.yml. - Renamed go.yml to ci.yml. - Added stale.yml to handle stale pull requests and issues.
1 parent f687ab3 commit 768aeb9

File tree

5 files changed

+46
-54
lines changed

5 files changed

+46
-54
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ updates:
44
directory: "/"
55
schedule:
66
interval: daily
7-
time: "19:00"
7+
time: "17:00"
88
open-pull-requests-limit: 10

.github/semantic.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: ^1.15
18+
- run: |
19+
go get -v -t -d ./...
20+
- run: |
21+
go test -v ./...

.github/workflows/go.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Close stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
7+
jobs:
8+
stale:
9+
name: Update stale issues and pull requests
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v3
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
stale-issue-message: This issue is stale because it has been open ${{ secrets.OPEN_DAYS }} days with no activity. Remove stale label or comment or this will be closed in ${{ secrets.STALE_DAYS }} days.
16+
stale-pr-message: This pull request is stale because it has been open ${{ secrets.OPEN_DAYS }} days with no activity. Remove stale label or comment or this will be closed in ${{ secrets.STALE_DAYS }} days.
17+
close-issue-message: This issue has been closed because it has been open for ${{ secrets.TOTAL_DAYS }} days with no activity.
18+
close-pr-message: This pull request has been closed because it has been open for ${{ secrets.TOTAL_DAYS }} days with no activity.
19+
stale-issue-label: stale-closing-soon
20+
stale-pr-label: stale-closing-soon
21+
close-issue-label: stale-closed
22+
close-pr-label: stale-closed
23+
days-before-stale: ${{ secrets.OPEN_DAYS }}
24+
days-before-close: ${{ secrets.STALE_DAYS }}

0 commit comments

Comments
 (0)