-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from lizrabuya/master
SUP-1408 - Remove support of the ENV vars and renaming existing parameters to follow naming conventions for configuration variables
- Loading branch information
Showing
7 changed files
with
202 additions
and
191 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
name: Unit Test | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Verify that the Docker image for the action builds | ||
run: docker build . --file Dockerfile | ||
|
||
tests: | ||
name: unit-test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run unit test for the action | ||
run: docker run --rm -v "$PWD":/plugin buildkite/plugin-tester:v4.0.0 | ||
|
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,38 @@ | ||
name: Verify | ||
|
||
on: push | ||
|
||
jobs: | ||
tests: | ||
name: Integration tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Verify that the Docker image for the action builds | ||
run: docker build . --file Dockerfile | ||
|
||
- name: Run action with minimal parameters | ||
uses: ./ | ||
with: | ||
buildkite_api_access_token: ${{ secrets.BUILDKITE_API_ACCESS_TOKEN }} | ||
pipeline: "lzrinc/experimental-pipeline" | ||
message: Triggered from GHA using minimal parameters | ||
branch: master | ||
commit: HEAD | ||
|
||
- name: Run action with all parameters | ||
uses: ./ | ||
id: tests | ||
with: | ||
buildkite_api_access_token: ${{ secrets.BUILDKITE_API_ACCESS_TOKEN }} | ||
pipeline: "lzrinc/experimental-pipeline" | ||
branch: dev | ||
commit: HEAD | ||
message: ":buildkite::github: 🚀🚀🚀 Triggered from GHA using commit message: ${{ github.event.head_commit.message }}" | ||
build_env_vars: '{"TRIGGERED_FROM_GHA": "true"}' | ||
build_meta_data: '{"FOO": "bar"}' | ||
ignore_pipeline_branch_filter: true | ||
|
||
- name: Verify output | ||
run: echo ${{join(steps.tests.outputs.*, '\n')}} |
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
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
Oops, something went wrong.