Skip to content

chore(README.md): change titles #40

chore(README.md): change titles

chore(README.md): change titles #40

on: [push]
jobs:
local_test_lasttag:
runs-on: ubuntu-latest
name: Test local action without fixed version
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test local action
id: local-action
uses: ./
with:
upstream_repo: sysdiglabs/kube-psp-advisor
local_patch_dir: tests/sysdiglabs/kube-psp-advisor
outputs:
used_tag: ${{ steps.local-action.outputs.tag }}
used_latest: ${{ steps.local-action.outputs.latest }}
tag_major: ${{ steps.local-action.outputs.tag_major }}
tag_minor: ${{ steps.local-action.outputs.tag_minor }}
tag_patch: ${{ steps.local-action.outputs.tag_patch }}
local_test_fixed:
runs-on: ubuntu-latest
name: Test local action with fixed version
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test local action
id: local-action
uses: ./
with:
upstream_repo: sysdiglabs/kube-psp-advisor
local_patch_dir: tests/sysdiglabs/kube-psp-advisor
upstream_ref: master
outputs:
used_tag: ${{ steps.local-action.outputs.tag }}
used_latest: ${{ steps.local-action.outputs.latest }}
tag_major: ${{ steps.local-action.outputs.tag_major }}
tag_minor: ${{ steps.local-action.outputs.tag_minor }}
tag_patch: ${{ steps.local-action.outputs.tag_patch }}
print_results:
runs-on: ubuntu-latest
name: Print test results
needs: [local_test_lasttag, local_test_fixed]
steps:
- run: |
echo "local_test_lasttag: ${{ needs.local_test_lasttag.outputs.used_tag }},${{ needs.local_test_lasttag.outputs.used_latest }}"
echo "local_test_fixed: ${{ needs.local_test_fixed.outputs.used_tag }},${{ needs.local_test_fixed.outputs.used_latest }}"
echo "semver_fixed: ${{ needs.local_test_fixed.outputs.tag_major }}, ${{ needs.local_test_fixed.outputs.tag_minor }}, ${{ needs.local_test_fixed.outputs.tag_patch }}"
echo "semver_lasttag: ${{ needs.local_test_lasttag.outputs.tag_major }}, ${{ needs.local_test_lasttag.outputs.tag_minor }}, ${{ needs.local_test_lasttag.outputs.tag_patch }}"
shell: bash
local_test_upstream_remove_files:
runs-on: ubuntu-latest
name: Test local action with upstream_remove_files set
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test local action
id: local-action
uses: ./
with:
upstream_repo: sysdiglabs/kube-psp-advisor
local_patch_dir: tests/sysdiglabs/kube-psp-advisor
upstream_ref: master
upstream_remove_files: |
version
comparator/comparator.go
- name: Assert that files are removed
id: test-remove
run: |-
! [[ -f upstream/version ]] && ! [[ -f upstream/comparator/comparator.go ]]
shell: bash
local_test_copy_from_upstream:
runs-on: ubuntu-latest
name: Test local action with upstream_copy set
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test local action
id: local-action
uses: ./
with:
upstream_repo: sysdiglabs/kube-psp-advisor
local_patch_dir: tests/sysdiglabs/kube-psp-advisor
upstream_ref: master
upstream_copy: |
generator/* tests/
- name: Assert that files are copied
id: test-copy
run: |-
[[ -f tests/generator.go ]] && [[ -f tests/generator_test.go ]]
shell: bash