Skip to content

[sdk-1244] enable builds if we change workflows or actions as well #3

[sdk-1244] enable builds if we change workflows or actions as well

[sdk-1244] enable builds if we change workflows or actions as well #3

name: LaunchDarkly.ServerSdk.Consul CI

Check failure on line 1 in .github/workflows/server-sdk-consul-ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/server-sdk-consul-ci.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
push:
branches: [ main, 'feat/**' ]
paths:
- 'pkgs/dotnet-server-sdk-consul/**'
- '.github/**'
paths-ignore:
- '**.md' # Do not need to run CI for markdown changes.
pull_request:
branches: [ main, 'feat/**' ]
paths:
- 'pkgs/dotnet-server-sdk-consul/**'
- '.github/**'
paths-ignore:
- '**.md'
jobs:
build-and-test:
strategy:
matrix:
include:
- os: ubuntu-latest
framework: netstandard2.0
test_framework: net8.0
- os: windows-latest
framework: net462
test_framework: net462
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.os == 'windows-latest' && 'powershell' || 'bash' }}
steps:
- uses: actions/checkout@v4
- name: Setup Env from project's Env file
shell: bash
run: echo "$(cat pkgs/dotnet-server-sdk-consul/github_actions.env)" >> $GITHUB_ENV
- uses: ./.github/actions/ci
with:
project_file: ${{ env.PROJECT_FILE }}
test_project_file: ${{ env.TEST_PROJECT_FILE }}
target_test_framework: ${{ matrix.test_framework }}