Skip to content

Commit fda6d93

Browse files
committed
Release Crontab v0.1.0 ⏰ (#1)
1 parent bf03a24 commit fda6d93

26 files changed

+1855
-1
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.github/ @gryumov
2+
/src/ @gryumov
3+
/test/ @gryumov
4+
/.JuliaFormatter.toml @gryumov
5+
/.gitignore @gryumov
6+
/LICENSE @gryumov
7+
/Project.toml @gryumov
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: 'Bug report'
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
Describe the bug
11+
---
12+
> A clear and concise description of what the bug is.
13+
14+
15+
16+
To Reproduce
17+
---
18+
> Add a Minimal, Complete, and Verifiable example (for more details, see e.g. https://stackoverflow.com/help/mcve)
19+
>
20+
> If the code is too long, feel free to put it in a public gist and link
21+
it in the issue: https://gist.github.com
22+
23+
```julia
24+
# Past your code here.
25+
```
26+
27+
28+
29+
Expected behavior
30+
---
31+
> A clear and concise description of what you expected to happen.
32+
33+
34+
35+
Additional context
36+
---
37+
> Add any other context about the problem here.\
38+
> Please include the output of\
39+
> `julia> versioninfo()`\
40+
> and\
41+
> `pkg> st`
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'feature'
6+
assignees: ''
7+
8+
---
9+
10+
Is your feature request related to a problem? Please describe.
11+
---
12+
> A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
14+
15+
16+
Describe the solution you'd like
17+
---
18+
> A clear and concise description of what you want to happen.
19+
20+
21+
22+
Describe alternatives you've considered
23+
---
24+
> A clear and concise description of any alternative solutions or features you've considered.
25+
26+
27+
28+
Additional context
29+
---
30+
> Add any other context or screenshots about the feature request here.
31+
32+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
### Pull request checklist
2+
3+
- [ ] Did you bump the project version?
4+
- [ ] Did you add a description to the Pull Request?
5+
- [ ] Did you add new tests?
6+
- [ ] Did you add reviewers?

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
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+
interval: "weekly"
8+

.github/workflows/CompatHelper.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CompatHelper
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
workflow_dispatch:
7+
8+
jobs:
9+
CompatHelper:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
actions: write
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: julia-actions/add-julia-registry@v2
17+
with:
18+
key: ${{ secrets.SSH_PRIVATE_KEY }}
19+
registry: bhftbootcamp/Green
20+
- uses: julia-actions/setup-julia@v2
21+
- uses: julia-actions/cache@v2
22+
- name: Configure CompatHelper
23+
run: |
24+
julia -e '
25+
using Pkg
26+
Pkg.add("CompatHelper")
27+
using CompatHelper
28+
CompatHelper.main(use_existing_registries = true)
29+
'
30+
env:
31+
GITHUB_TOKEN: ${{ github.token }} # Token required to create a pull request to the same repository

.github/workflows/Coverage.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
14+
jobs:
15+
test:
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17+
runs-on: ${{ matrix.os }}
18+
timeout-minutes: 60
19+
permissions:
20+
actions: write
21+
contents: read
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
version:
26+
- '1'
27+
- '1.8'
28+
- '1.9'
29+
os:
30+
- ubuntu-latest
31+
arch:
32+
- x64
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: julia-actions/add-julia-registry@v2
36+
with:
37+
key: ${{ secrets.SSH_PRIVATE_KEY }}
38+
registry: bhftbootcamp/Green
39+
- uses: julia-actions/setup-julia@v2
40+
with:
41+
version: ${{ matrix.version }}
42+
arch: ${{ matrix.arch }}
43+
- uses: julia-actions/cache@v2
44+
- uses: julia-actions/julia-buildpkg@v1
45+
- uses: julia-actions/julia-runtest@v1
46+
- uses: julia-actions/julia-processcoverage@v1
47+
- uses: codecov/codecov-action@v5
48+
env:
49+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
50+
with:
51+
files: lcov.info
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Doc Preview Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
# Ensure that only one "Doc Preview Cleanup" workflow is force pushing at a time
8+
concurrency:
9+
group: doc-preview-cleanup
10+
cancel-in-progress: false
11+
12+
jobs:
13+
doc-preview-cleanup:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
steps:
18+
- name: Checkout gh-pages branch
19+
uses: actions/checkout@v4
20+
with:
21+
ref: gh-pages
22+
- name: Delete preview and history + push changes
23+
run: |
24+
if [ -d "${preview_dir}" ]; then
25+
git config user.name "Documenter.jl"
26+
git config user.email "documenter@juliadocs.github.io"
27+
git rm -rf "${preview_dir}"
28+
git commit -m "delete preview"
29+
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
30+
git push --force origin gh-pages-new:gh-pages
31+
fi
32+
env:
33+
preview_dir: previews/PR${{ github.event.number }}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Documenter
2+
3+
on:
4+
push:
5+
tags: [v*]
6+
pull_request:
7+
8+
jobs:
9+
Documenter:
10+
permissions:
11+
contents: write
12+
statuses: write
13+
actions: write
14+
pull-requests: write
15+
name: Documentation
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: julia-actions/add-julia-registry@v2
20+
with:
21+
key: ${{ secrets.SSH_PRIVATE_KEY }}
22+
registry: bhftbootcamp/Green
23+
- uses: julia-actions/setup-julia@latest
24+
- uses: julia-actions/cache@v2
25+
- name: Install dependencies
26+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path = pwd())); Pkg.instantiate()'
27+
- name: Build and deploy
28+
env:
29+
GITHUB_TOKEN: ${{ github.token }}
30+
run: julia --project=docs/ docs/make.jl
31+
- name: Make comment with preview link
32+
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened'}}
33+
uses: actions/github-script@v7
34+
with:
35+
script: |
36+
github.rest.issues.createComment({
37+
issue_number: context.issue.number,
38+
owner: context.repo.owner,
39+
repo: context.repo.repo,
40+
body: ':blue_book: A preview of the documentation will be [here](${{env.preview_url}}) soon'
41+
})
42+
env:
43+
preview_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/previews/PR${{ github.event.number }}/

.github/workflows/Registry.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Update registry
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
jobs:
10+
registry:
11+
name: Update registry
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: write
15+
contents: read
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: julia-actions/add-julia-registry@v2
19+
with:
20+
key: ${{ secrets.SSH_PRIVATE_KEY }}
21+
registry: bhftbootcamp/Green
22+
- uses: julia-actions/setup-julia@v2
23+
with:
24+
version: 1.9
25+
- uses: julia-actions/cache@v2
26+
- name: Configure Git
27+
run: |
28+
sudo apt-get update -qq && sudo apt-get install -y -qq git
29+
git config --global user.name github-actions[bot]
30+
git config --global user.email github-actions[bot]@users.noreply.github.com
31+
- name: Updating package version in registers
32+
run: |
33+
julia -e '
34+
using Pkg
35+
36+
Pkg.add("LocalRegistry")
37+
Pkg.develop(url = "git@github.com:${{ github.repository }}.git")
38+
39+
using LocalRegistry
40+
using TOML
41+
42+
package_name = match(r"^.*/(.*?)(\.jl)?(\.git)?$", "${{ github.repository }}")
43+
package_name == nothing && error("Invalid package name: ${{ github.repository }}")
44+
package_name = package_name[1]
45+
46+
package_dir = joinpath(DEPOT_PATH[1], "dev", package_name)
47+
project_toml = TOML.parsefile(joinpath(package_dir, "Project.toml"))
48+
version = VersionNumber(project_toml["version"])
49+
50+
LocalRegistry.register(
51+
package_name,
52+
repo = "https://github.com/${{ github.repository }}.git",
53+
registry = "git@github.com:bhftbootcamp/Green.git",
54+
ignore_reregistration = true,
55+
)
56+
57+
run(Cmd(`git tag -f "v$version"`, dir = package_dir))
58+
run(Cmd(`git push --force origin "v$version"`, dir = package_dir))
59+
'

0 commit comments

Comments
 (0)