CI: Add path-based triggers (#319) #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: LSP | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "LSP/**" | |
| - ".github/workflows/LSP.yml" | |
| pull_request: | |
| paths: | |
| - "LSP/**" | |
| - ".github/workflows/LSP.yml" | |
| jobs: | |
| LSP: | |
| name: Test LSP.jl | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: julia-actions/setup-julia@v1 | |
| with: | |
| version: "1.12" # most stable version | |
| arch: x64 | |
| - uses: julia-actions/cache@v2 | |
| - name: test LSP | |
| shell: julia --color=yes --project=. {0} # this is necessary for the next command to work on Windows | |
| run: 'using Pkg; Pkg.activate(normpath(pwd(), "LSP")); Pkg.instantiate(); Pkg.test(; coverage=true)' | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v5 |