From 5e18e086fe420b020a5cbd71eed4c7e868ae8964 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 11 Dec 2024 12:33:25 +0100 Subject: [PATCH] Misc CI updates --- .git-blame-ignore-revs | 2 ++ .github/dependabot.yml | 7 +++++++ .github/workflows/{ci.yml => CI.yml} | 17 +++++++++++------ .github/workflows/Check.yml | 23 +++++++++++++++++++++++ Project.toml | 3 ++- test/runtests.jl | 3 +++ 6 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 .git-blame-ignore-revs create mode 100644 .github/dependabot.yml rename .github/workflows/{ci.yml => CI.yml} (65%) create mode 100644 .github/workflows/Check.yml diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..6231dc3 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# Runic 1.2.0 formatting +e7920eacd87d36d67d887f57f9eb2e342dff7879 diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d60f070 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "monthly" diff --git a/.github/workflows/ci.yml b/.github/workflows/CI.yml similarity index 65% rename from .github/workflows/ci.yml rename to .github/workflows/CI.yml index 816b785..8831d79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/CI.yml @@ -5,7 +5,7 @@ on: branches: - 'master' - 'release-' - tags: '*' + tags: ['*'] pull_request: jobs: @@ -16,6 +16,7 @@ jobs: matrix: version: - '1.6' + - '1.10' - '1' - 'nightly' os: @@ -26,13 +27,17 @@ jobs: - os: macOS-latest version: '1' steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v5 with: - files: ./lcov.info + files: lcov.info + plugins: noop + disable_search: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/Check.yml b/.github/workflows/Check.yml new file mode 100644 index 0000000..37742fb --- /dev/null +++ b/.github/workflows/Check.yml @@ -0,0 +1,23 @@ +--- +name: Check +on: + push: + branches: + - 'master' + - 'release-' + tags: + - '*' + pull_request: +jobs: + runic: + name: Runic formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1.11' + - uses: julia-actions/cache@v2 + - uses: fredrikekre/runic-action@v1 + with: + version: '1.2' diff --git a/Project.toml b/Project.toml index bb9768b..eecf274 100644 --- a/Project.toml +++ b/Project.toml @@ -6,7 +6,8 @@ version = "1.0.4" julia = "1.6" [extras] +REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test"] +test = ["REPL", "Test"] diff --git a/test/runtests.jl b/test/runtests.jl index 99fbd4d..5e8a5e7 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -2,6 +2,9 @@ using EnumX, Test +# Needed to "render" docstrings, see https://github.com/JuliaLang/julia/issues/54664 +import REPL + const T16 = Int16 getInt64() = Int64 const Elppa = -1