-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add continuous integration support via GitHub Actions (#22)
Exercise the project initialization process via continuous integration on every PR and merges to master. In addition: - Add support for keeping GitHub Actions up-to-date with Dependabot - Add support for automatically merging Dependabot PRs that pass CI - Add support for marking inactive issues as stale, and eventually closing them - Update sbt-extras script - Fix the Typesafe repository resolver
- Loading branch information
1 parent
cccf1e0
commit e620910
Showing
6 changed files
with
183 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
jdk-version: [[email protected]] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Scala ${{ matrix.jdk-version }} | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: ${{ matrix.jdk-version }} | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.ivy2/cache | ||
~/.sbt | ||
key: sbt-${{ hashFiles('**/build.sbt') }} | ||
restore-keys: sbt- | ||
|
||
- name: Create new project from template | ||
run: | | ||
sbt new file://${GITHUB_WORKSPACE} \ | ||
--name=ci \ | ||
--organization=com.azavea \ | ||
--package=com.azavea.ci \ | ||
--default-api-port=8080 \ | ||
--default-db-port=5432 | ||
cd ci && sbt ";bloopInstall; scalafmt; scalafmtSbt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Automatically merge Dependabot PRs | ||
|
||
on: | ||
check_suite: | ||
types: | ||
- completed | ||
|
||
jobs: | ||
merge-dependabot: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ridedott/[email protected] | ||
with: | ||
GITHUB_LOGIN: "dependabot[bot]" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
merge-dependabot-preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: ridedott/[email protected] | ||
with: | ||
GITHUB_LOGIN: "dependabot-preview[bot]" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Mark stale issues and pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: > | ||
This issue has been automatically marked as stale because it has | ||
not had recent activity. It will be closed if no further activity | ||
occurs. | ||
stale-pr-message: > | ||
This pull request has been automatically marked as stale because | ||
it has not had recent activity. It will be closed if no further | ||
activity occurs. | ||
days-before-stale: 60 | ||
days-before-close: 7 | ||
stale-issue-label: "stale" | ||
stale-pr-label: "stale" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters