-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d4c318
commit de4cb84
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Code checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- 'release-' | ||
tags: | ||
- '*' | ||
pull_request: | ||
|
||
jobs: | ||
runic: | ||
name: Runic (Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
version: | ||
- '1.6' | ||
- '1.7' | ||
- '1.8' | ||
- '1.9' | ||
- '1' | ||
- 'nightly' | ||
os: | ||
- ubuntu-latest | ||
include: | ||
- os: windows-latest | ||
version: '1' | ||
- os: macOS-latest | ||
version: '1' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: ${{ matrix.version }} | ||
- uses: julia-actions/cache@v2 | ||
- name: Run Runic and check diff | ||
if: ${{ matrix.version == 'nightly' }} | ||
run: | | ||
julia --project -m Runic -i $(git ls-files -- '*.jl') | ||
git diff --exit-code | ||
- name: Run Runic and check diff | ||
if: ${{ matrix.version != 'nightly' }} | ||
run: | | ||
julia --project -e 'using Runic; Runic.main(ARGS)' -i $(git ls-files -- '*.jl') | ||
git diff --exit-code | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
file: lcov.info | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |