Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to viash 0.9.0-RC2 #15

Merged
merged 21 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
53 changes: 32 additions & 21 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,45 @@ jobs:
run: |
LANG=C viash ns list > /dev/null

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
separator: ";"
diff_relative: true

- id: ns_list
uses: viash-io/viash-actions/ns-list@v5
with:
platform: docker
format: json
query: ^(?!workflows)
# see https://github.com/viash-io/viash/issues/654
# and https://github.com/viash-io/viash-actions/pull/27
# - name: Get changed files
# id: changed-files
# uses: tj-actions/changed-files@v42
# with:
# separator: ";"
# diff_relative: true
# - id: ns_list
# uses: viash-io/viash-actions/ns-list@v5
# with:
# platform: docker
# format: json
# query: ^(?!workflows)
# - id: ns_list_filtered
# uses: viash-io/viash-actions/project/detect-changed-components@v5
# with:
# input_file: "${{ steps.ns_list.outputs.output_file }}"
# - id: set_matrix
# run: |
# echo "matrix=$(jq -c '[ .[] |
# {
# "name": (.functionality.namespace + "/" + .functionality.name),
# "config": .info.config,
# "dir": .info.config | capture("^(?<dir>.*\/)").dir
# }
# ]' ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, 'ci force') && steps.ns_list.outputs.output_file || steps.ns_list_filtered.outputs.output_file }} )" >> $GITHUB_OUTPUT

- id: ns_list_filtered
uses: viash-io/viash-actions/project/detect-changed-components@v5
with:
input_file: "${{ steps.ns_list.outputs.output_file }}"

- id: set_matrix
run: |
viash ns list --format json > ns_list.json
echo "matrix=$(jq -c '[ .[] |
{
"name": (.functionality.namespace + "/" + .functionality.name),
"config": .info.config,
"dir": .info.config | capture("^(?<dir>.*\/)").dir
"name": (.namespace + "/" + .name),
"config": .build_info.config,
"dir": .build_info.config | capture("^(?<dir>.*\/)").dir
}
]' ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, 'ci force') && steps.ns_list.outputs.output_file || steps.ns_list_filtered.outputs.output_file }} )" >> $GITHUB_OUTPUT
]' ns_list.json )" >> $GITHUB_OUTPUT

# phase 2
viash_test:
Expand Down
Loading