Skip to content

Commit

Permalink
Run Runic on Runic on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed May 27, 2024
1 parent dfdd703 commit 0fb1d68
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/Check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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.6'
- '1.7'
- '1.8'
- '1.9'
- '1'
- 'nightly'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- name: Install dependencies
run: |
julia --project --code-coverage=@ -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()'
- name: Run Runic
run: |
julia --project --code-coverage=@ -m Runic -i $(git ls-files -- '*.jl')
if: ${{ matrix.version == 'nightly' }}
- name: Run Runic
run: |
julia --project --code-coverage=@ -e 'using Runic; exit(Runic.main(ARGS))' -- -i $(git ls-files -- '*.jl')
if: ${{ matrix.version != 'nightly' }}
- name: Check formatting diff
run: |
git diff --color=always --exit-code
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.6'
Expand Down

0 comments on commit 0fb1d68

Please sign in to comment.