Update test_plugins.jl #29
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: Tests | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Julia | |
| uses: julia-actions/setup-julia@v1 | |
| with: | |
| version: "1" | |
| - name: Run tests with coverage and write lcov | |
| run: | | |
| julia --project -e 'using Pkg; | |
| Pkg.activate("."); | |
| Pkg.add("Coverage"); | |
| Pkg.add("Test"); | |
| Pkg.instantiate(); | |
| Pkg.test(coverage=true); | |
| using Coverage | |
| LCOV.writefile("lcov.info", process_folder()); | |
| ' | |
| - name: Submit to Coveralls | |
| uses: coverallsapp/github-action@v2.2.3 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: ./lcov.info |