Skip to content

Commit 038790a

Browse files
authored
ci: Update ci config (#115)
* ci: Add dependabot.yml * ci: update tagbot ref: https://github.com/JuliaCI/PkgTemplates.jl/blob/1b5bd08d5fe8658ae9f0d578f58af96d16969366/templates/github/workflows/TagBot.yml * ci: Add CompatHelper * ci: run CompatHelper once a week * ci: update ci.yml * README: update badge
1 parent a65b64f commit 038790a

File tree

5 files changed

+69
-24
lines changed

5 files changed

+69
-24
lines changed

Diff for: .github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
# weekly, monthly
8+
interval: "monthly"

Diff for: .github/workflows/CompatHelper.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
# Once a week: At 00:00 on Sunday
5+
- cron: '0 0 * * 0'
6+
workflow_dispatch:
7+
jobs:
8+
CompatHelper:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Pkg.add("CompatHelper")
12+
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
13+
- name: CompatHelper.main()
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
17+
run: julia -e 'using CompatHelper; CompatHelper.main()'

Diff for: .github/workflows/TagBot.yml

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,31 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: "3"
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
523
jobs:
624
TagBot:
25+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
726
runs-on: ubuntu-latest
827
steps:
928
- uses: JuliaRegistries/TagBot@v1
1029
with:
1130
token: ${{ secrets.GITHUB_TOKEN }}
31+
ssh: ${{ secrets.DOCUMENTER_KEY }}

Diff for: .github/workflows/ci.yml

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
name: CI
22
on:
3-
pull_request:
4-
branches:
5-
- master
63
push:
74
branches:
85
- master
9-
tags: '*'
6+
tags: ['*']
7+
pull_request:
8+
workflow_dispatch:
9+
concurrency:
10+
# Skip intermediate builds: always.
11+
# Cancel intermediate builds: only if it is a pull request build.
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1014
jobs:
1115
test:
12-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1317
runs-on: ${{ matrix.os }}
18+
permissions:
19+
# needed to allow julia-actions/cache to proactively delete old caches that it has created
20+
actions: write
21+
contents: read
1422
strategy:
1523
fail-fast: false
1624
matrix:
1725
version:
18-
- '1' # automatically expands to the latest stable 1.x release of Julia
26+
- '1' # latest stable release
1927
- 'nightly'
2028
os:
2129
- ubuntu-latest
@@ -28,25 +36,17 @@ jobs:
2836
- os: macOS-latest
2937
arch: x86
3038
steps:
31-
- uses: actions/checkout@v2
32-
- uses: julia-actions/setup-julia@v1
39+
- uses: actions/checkout@v4
40+
- uses: julia-actions/setup-julia@v2
3341
with:
3442
version: ${{ matrix.version }}
3543
arch: ${{ matrix.arch }}
36-
- uses: actions/cache@v1
37-
env:
38-
cache-name: cache-artifacts
39-
with:
40-
path: ~/.julia/artifacts
41-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
42-
restore-keys: |
43-
${{ runner.os }}-test-${{ env.cache-name }}-
44-
${{ runner.os }}-test-
45-
${{ runner.os }}-
46-
- run: julia --color=yes .ci/test_and_change_uuid.jl
44+
- uses: julia-actions/cache@v2
4745
- uses: julia-actions/julia-buildpkg@v1
4846
- uses: julia-actions/julia-runtest@v1
4947
- uses: julia-actions/julia-processcoverage@v1
50-
- uses: codecov/codecov-action@v1
48+
- uses: codecov/codecov-action@v5
5149
with:
52-
file: lcov.info
50+
files: lcov.info
51+
token: ${{ secrets.CODECOV_TOKEN }}
52+
fail_ci_if_error: false

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LibCURL.jl
44
*Julia wrapper for libCURL*
55

66
[![CI](https://github.com/JuliaWeb/LibCURL.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/JuliaWeb/LibCURL.jl/actions/workflows/ci.yml)
7-
[![codecov.io](http://codecov.io/github/JuliaWeb/LibCURL.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaWeb/LibCURL.jl?branch=master)
7+
[![codecov.io](https://codecov.io/github/JuliaWeb/LibCURL.jl/graph/badge.svg)](https://codecov.io/github/JuliaWeb/LibCURL.jl)
88

99
---
1010
This is a simple Julia wrapper around http://curl.haxx.se/libcurl/ generated using [Clang.jl](https://github.com/ihnorton/Clang.jl). Please see the [libcurl API documentation](https://curl.haxx.se/libcurl/c/) for help on how to use this package.

0 commit comments

Comments
 (0)