-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: migrate from codefresh to github actions (#96)
* ci: migrate from codefresh to github actions Signed-off-by: Timothy MacDonald <tim.macdonald@lacework.net> * ci: update job name in test compat workflow Signed-off-by: Timothy MacDonald <tim.macdonald@lacework.net> --------- Signed-off-by: Timothy MacDonald <tim.macdonald@lacework.net>
- Loading branch information
Showing
6 changed files
with
85 additions
and
0 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,11 @@ | ||
name: Nightly Build | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 10 * * *' # Run every day at 10AM UTC | ||
|
||
jobs: | ||
call-nightly-workflow: | ||
uses: lacework/oss-actions/.github/workflows/tf-nightly.yml@main | ||
secrets: inherit |
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,8 @@ | ||
name: Prepare Release | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
call-nightly-workflow: | ||
uses: lacework/oss-actions/.github/workflows/tf-prepare-release.yml@main | ||
secrets: inherit |
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,12 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
call-nightly-workflow: | ||
uses: lacework/oss-actions/.github/workflows/tf-release.yml@main | ||
secrets: inherit |
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,29 @@ | ||
name: Test Compatibility On Comment | ||
|
||
on: | ||
workflow_dispatch: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
check-commenting-user: | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(github.event.comment.html_url, '/pull/') && contains(github.event.comment.body, 'make it so') }} | ||
steps: | ||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const creator = context.payload.sender.login | ||
const result = await github.rest.teams.getMembershipForUserInOrg({ | ||
org: context.repo.owner, | ||
team_slug: 'growth-team', | ||
username: creator | ||
}) | ||
if (result.state != "active" ) { | ||
core.setFailed('Commenter is not a member of the growth team.') | ||
} | ||
call-test-compat: | ||
needs: check-commenting-user | ||
uses: lacework/oss-actions/.github/workflows/tf-test-compatibility.yml@main | ||
secrets: inherit |
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,13 @@ | ||
name: Test Compatibility | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
call-test-compat: | ||
uses: lacework/oss-actions/.github/workflows/tf-test-compatibility.yml@main | ||
secrets: inherit |
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,12 @@ | ||
name: Verify Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
call-nightly-workflow: | ||
uses: lacework/oss-actions/.github/workflows/tf-verify.yml@main | ||
secrets: inherit |