mirror of https://github.com/fredrikekre/Runic.jl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
name: Code checks |
|
|
|
on: |
|
push: |
|
branches: |
|
- 'master' |
|
- 'release-' |
|
tags: |
|
- '*' |
|
pull_request: |
|
|
|
jobs: |
|
runic: |
|
name: Runic (Julia ${{ matrix.version }}) |
|
runs-on: ubuntu-latest |
|
strategy: |
|
fail-fast: false |
|
matrix: |
|
version: |
|
- '1.10' |
|
- '1' |
|
- 'nightly' |
|
steps: |
|
- uses: actions/checkout@v5 |
|
- uses: julia-actions/setup-julia@v2 |
|
with: |
|
version: ${{ matrix.version }} |
|
- uses: julia-actions/cache@v2 |
|
- name: Install dependencies |
|
run: | |
|
julia --color=yes --project --code-coverage=@ -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()' |
|
- name: Run Runic |
|
run: | |
|
git ls-files -z -- '*.jl' | xargs -0 julia --color=yes --project --code-coverage=@ -m Runic --check --diff |
|
if: ${{ matrix.version == 'nightly' }} |
|
- name: Run Runic |
|
run: | |
|
git ls-files -z -- '*.jl' | xargs -0 julia --color=yes --project --code-coverage=@ -e 'using Runic; exit(Runic.main(ARGS))' -- --check --diff |
|
if: ${{ matrix.version != 'nightly' }} |
|
- uses: julia-actions/julia-processcoverage@v1 |
|
- uses: codecov/codecov-action@v5 |
|
with: |
|
files: lcov.info |
|
plugins: noop |
|
disable_search: true |
|
env: |
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|