generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 25
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 #17 from homoluctus/feature/support_env_var
Support IMAGE_NAME environment variable
- Loading branch information
Showing
6 changed files
with
54 additions
and
7 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 |
---|---|---|
|
@@ -2,9 +2,12 @@ name: Test my typescript action | |
|
||
on: pull_request | ||
|
||
env: | ||
IMAGE_NAME: alpine:3.10.1 | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
test1: | ||
name: Test for with parameter | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
@@ -36,3 +39,36 @@ jobs: | |
job_name: ':ts: *test gitrivy*' | ||
channel: '#develop' | ||
url: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
test2: | ||
name: Test for getting image name from enviroment variable | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
# - name: Test | ||
# run: npm run test | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Pull docker image | ||
run: docker pull alpine:3.10.3 | ||
|
||
- uses: ./ | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue_label: trivy,vulnerability,test | ||
issue_title: Security Alert Test | ||
issue_assignee: homoluctus | ||
|
||
- uses: homoluctus/[email protected] | ||
if: always() | ||
with: | ||
type: ${{ job.status }} | ||
job_name: ':ts: *test gitrivy*' | ||
channel: '#develop' | ||
url: ${{ secrets.SLACK_WEBHOOK }} |
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
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