Bump actions/checkout from 6 to 7 (#68) #131
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: CI | |
| on: | |
| create: | |
| tags: | |
| pull_request: | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| workflow_dispatch: | |
| jobs: | |
| version: | |
| # see https://github.com/julia-actions/julia-version | |
| name: Resolve Julia Versions | |
| # These permissions are needed to: | |
| # - Checkout the Git repository (`contents: read`) | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| outputs: | |
| json: ${{ steps.julia-version.outputs.resolved-json }} | |
| steps: | |
| - uses: actions/checkout@v7 # Needed for "min" to access the Project.toml | |
| - uses: julia-actions/julia-version@v0.1.0 | |
| id: julia-version | |
| with: | |
| versions: | | |
| - min # Oldest supported version in Project.toml | |
| - 1 # Latest release | |
| test: | |
| name: Julia ${{ matrix.version }} - ${{ matrix.os }} | |
| needs: version | |
| runs-on: ${{ matrix.os }} | |
| continue-on-error: ${{ matrix.version == 'nightly' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| version: ${{ fromJSON(needs.version.outputs.json) }} | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: julia-actions/setup-julia@v3 | |
| with: | |
| version: ${{ matrix.version }} | |
| - name: Cache artifacts | |
| uses: actions/cache@v5 | |
| env: | |
| cache-name: cache-artifacts | |
| with: | |
| path: ~/.julia/artifacts | |
| key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-test-${{ env.cache-name }}- | |
| ${{ runner.os }}-test- | |
| ${{ runner.os }}- | |
| # - name: "Unit Test" | |
| - uses: julia-actions/julia-buildpkg@v1 | |
| - uses: julia-actions/julia-runtest@v1 | |
| # - name: "Cover" | |
| - uses: julia-actions/julia-processcoverage@v1 | |
| - uses: codecov/codecov-action@v7 | |
| if: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }} | |
| with: | |
| file: lcov.info | |
| fail_ci_if_error: false | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |