Skip to content

Feat/sentinel

Feat/sentinel #16

Workflow file for this run

name: Release
permissions:
contents: write
pull-requests: write
attestations: write
id-token: write
on:
pull_request:
jobs:
changed-plugins:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.changed-plugins.outputs.all_changed_files }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tj-actions/changed-files@v44
id: changed-plugins
with:
files: |
splunk/**
dir_names: 'true'
dir_names_max_depth: '1'
matrix: 'true'
- name: List all changed plugins
run: echo '${{ steps.changed-plugins.outputs.all_changed_files }}'
test:
runs-on: ubuntu-latest
needs: [changed-plugins]
strategy:
matrix:
package: ${{ fromJSON(needs.changed-plugins.outputs.matrix) }}
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: rustup toolchain install stable --profile minimal
- uses: jcbhmr/setup-cargo-component@v1
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo component build -p ${{ matrix.package }}