Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move formatter job to GitHub Actions #13

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/formatter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: formatter
on: [pull_request]
jobs:
formatter:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1.9
- name: Install Julia requirements
run: julia --project=${GITHUB_WORKSPACE}/.formatting -e 'import Pkg; Pkg.instantiate()'
- name: Check code style
run: julia --project=${GITHUB_WORKSPACE}/.formatting ${GITHUB_WORKSPACE}/.formatting/format_all.jl
14 changes: 0 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
stages:
- linter
- unit-test
- generate_integration_test
- run_integration_test
- verify-unit-test-deps

format:
stage: linter
image: julia:1.9
script:
- "[[ -d .julia ]] && mv .julia /tmp"
- julia --project=.formatting -e 'import Pkg; Pkg.instantiate()'
- julia --project=.formatting .formatting/format_all.jl
- "[[ -d /tmp/.julia ]] && mv /tmp/.julia ."
variables:
CI_JULIA_VERSION: "1.9"
JULIA_DEPOT_PATH: /tmp/.julia
allow_failure: true

unit_tests_julia1.9:
image: julia:1.9
stage: unit-test
Expand Down