Skip to content

Commit

Permalink
Merge branch 'main' into default-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Dec 3, 2024
2 parents 8f2fdb3 + 2f6fd33 commit d91128b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Integration

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -21,6 +24,7 @@ jobs:
- name: 'Option test'
uses: ./
with:
version: "v0.122.1"
command: run
path_pattern: testdata/path/to/*.yml
debug: true
Expand All @@ -30,6 +34,8 @@ jobs:
shuffle: true
concurrent: true
enable-run-exec-scope: true
enable-read-remote-scope: true
enable-read-parent-scope: true
labels: "integration,integration_http"
env:
# Override parameters in scenario with environment variables
Expand Down
12 changes: 8 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inputs:
version:
description: Specify runn version
required: false
default: latest
default: "v0.120.0"
debug:
description: Filter runbooks to be executed
required: false
Expand All @@ -43,6 +43,10 @@ inputs:
description: Concurrent mode
required: false
default: false
enable-read-parent-scope:
description: Required for reading parent files.(`--scopes read:parent`)
required: false
default: false
enable-read-remote-scope:
description: Required for reading remote files.(`--scopes read:remote`)
required: false
Expand Down Expand Up @@ -118,7 +122,7 @@ runs:
${{ (inputs.skip-test == 'true' && '--skip-test') || '' }} \
${{ (inputs.shuffle == 'true' && '--shuffle on') || '' }} \
${{ (inputs.concurrent == 'true' && '--concurrent on') || '' }} \
${{ (inputs.enable-read-remote-scope == 'true' && inputs.enable-run-exec-scope == 'true' && '--scopes read:remote,run:exec') || '' }} \
${{ (inputs.enable-read-remote-scope == 'true' && inputs.enable-run-exec-scope == 'false' && '--scopes read:remote') || '' }} \
${{ (inputs.enable-read-remote-scope == 'false' && inputs.enable-run-exec-scope == 'true' && '--scopes run:exec') || '' }} \
${{ (inputs.enable-read-parent-scope == 'true' && '--scopes read:parent') || '' }} \
${{ (inputs.enable-read-remote-scope == 'true' && '--scopes read:remote') || '' }} \
${{ (inputs.enable-run-exec-scope == 'true' && '--scopes run:exec') || '' }} \
$LABEL_OPTIONS
7 changes: 7 additions & 0 deletions testdata/path/hello.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
desc: Parent runbook
labels:
- integration
steps:
-
test: |
len('hello') == 5
7 changes: 7 additions & 0 deletions testdata/path/to/parent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
desc: Parent include sample
labels:
- integration
steps:
-
include:
path: ../hello.yml
1 change: 0 additions & 1 deletion testdata/path/to/remote.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
desc: Remote include sample
labels:
- integration
if: false
steps:
-
include:
Expand Down

0 comments on commit d91128b

Please sign in to comment.