Skip to content

Commit

Permalink
gha migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
dalerichardson committed Jun 17, 2024
1 parent 07716d5 commit 37f2561
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 65 deletions.
14 changes: 11 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
ignore:
- dependency-name: "actions/checkout"
update-types: ["version-update:semver-major"]
# Maintain dependencies for dockerfiles
- package-ecosystem: docker
directory: "/"
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10
interval: weekly
11 changes: 11 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Run lint and static analyis checks
on:
pull_request:

concurrency:
group: lint-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint:
uses: plus3it/actions-workflows/.github/workflows/lint.yml@821d7899f1cf32b97306ef06ca1de31ae3274b7f
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Create GitHub Release

on:
# Run on demand
workflow_dispatch:

# Run on push to main when .bumpversion.cfg version is updated
push:
branches:
- main
- master
paths:
- .bumpversion.cfg

jobs:
release:
uses: plus3it/actions-workflows/.github/workflows/release.yml@821d7899f1cf32b97306ef06ca1de31ae3274b7f
secrets:
release-token: ${{ secrets.GH_RELEASES_TOKEN }}
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Run test jobs
on:
pull_request:

concurrency:
group: test-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
test:
uses: plus3it/actions-workflows/.github/workflows/test.yml@821d7899f1cf32b97306ef06ca1de31ae3274b7f
25 changes: 2 additions & 23 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
pull_request_rules:
- name: approve dependabot pull requests
conditions:
- author~=dependabot\[bot\]|dependabot-preview\[bot\]
- status-success=Travis CI - Pull Request
- author=dependabot[bot]
actions:
review:
type: APPROVE

- name: comment to start codebuild jobs
conditions:
- author~=dependabot\[bot\]|dependabot-preview\[bot\]
- "#approved-reviews-by>=1"
actions:
comment:
message: go codebuild go

- name: comment to start vagrant job
conditions:
- author~=dependabot\[bot\]|dependabot-preview\[bot\]
- "#approved-reviews-by>=1"
actions:
comment:
message: go vagrant go

- name: merge dependabot pull requests
conditions:
- author~=dependabot\[bot\]|dependabot-preview\[bot\]
- author=dependabot[bot]
- "#approved-reviews-by>=1"
# Must pass codebuild jobs before merge
- status-success=codebuild/p3-spel-commercial-ci/pr
- status-success=codebuild/p3-spel-govcloud-ci/pr
- status-success=codebuild/p3-spel-vagrant-ci/pr
actions:
merge:
method: merge
39 changes: 0 additions & 39 deletions .travis.yml

This file was deleted.

0 comments on commit 37f2561

Please sign in to comment.