Skip to content

Commit

Permalink
style: format Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Rys committed Aug 10, 2021
1 parent 0e1ecbf commit 35ce170
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,19 @@ jobs:
# Puts package and schema subdirs along with NOTICE (THIRDPARTY.npm)
tar -zxf splunk-ucc-ui.tgz -C splunk_add_on_ucc_framework/
- name: Install Code
run: source $HOME/.poetry/env; poetry install
run: |
source "$HOME/.poetry/env"
poetry install
- name: Build
run: source $HOME/.poetry/env; poetry build
run: |
source "$HOME/.poetry/env"
poetry build
- name: Ensure all UCC UI files are in the final package
run: ./.github/workflows/check_ucc_ui_files.sh
- name: Run Pytest with coverage
run: source $HOME/.poetry/env; poetry run pytest --cov=./splunk_add_on_ucc_framework --cov-report=xml --junitxml=test-results/junit.xml
run: |
source "$HOME/.poetry/env"
poetry run pytest --cov=./splunk_add_on_ucc_framework --cov-report=xml --junitxml=test-results/junit.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down Expand Up @@ -167,7 +173,9 @@ jobs:
# Puts package and schema subdirs along with NOTICE (THIRDPARTY.npm)
tar -zxf splunk-ucc-ui.tgz -C splunk_add_on_ucc_framework/
- name: Build
run: source $HOME/.poetry/env; poetry build
run: |
source "$HOME/.poetry/env"
poetry build
- name: Ensure all UCC UI files are in the final package
run: ./.github/workflows/check_ucc_ui_files.sh
- name: Set up QEMU
Expand Down Expand Up @@ -219,6 +227,9 @@ jobs:
# or you can signup for free at https://snyk.io/login
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
# actionlint is complaining about this line, because there is no
# json field in the docker/metadata-action@v3 action.yml file.
# This is expected, because json field is being populated dynamically.
image: ${{ fromJSON(steps.docker_meta.outputs.json).tags[0] }}
args: --file=Dockerfile
- name: Upload result to GitHub Code Scanning
Expand Down

0 comments on commit 35ce170

Please sign in to comment.