Skip to content
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
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
# Keep GitHub Actions up to date
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
github-actions:
patterns:
- "*"

# Keep Julia dependencies up to date
- package-ecosystem: "julia"
directory: "/"
schedule:
interval: "weekly"
groups:
julia-deps:
patterns:
- "*"
62 changes: 32 additions & 30 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,51 @@
name: CI
on:
push:
branches: [master]
tags: ["*"]
branches:
- main
- master
tags: ['*']
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
permissions:
actions: write
contents: read
strategy:
fail-fast: false
matrix:
version:
- '1.7'
- '1' # automatically expands to the latest stable 1.x release of Julia
- 'nightly'
- '1'
- 'lts'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
- x86
exclude:
- os: macOS-latest
arch: x86
- macOS-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info

# Single aggregate check for branch protection to require
ci-success:
name: CI success
if: always()
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Fail if any needed job did not succeed
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped') }}
run: exit 1
24 changes: 0 additions & 24 deletions .github/workflows/CompatHelper.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Dependabot auto-merge
on: pull_request

permissions:
contents: write
pull-requests: write

jobs:
auto-merge:
uses: RallypointOne/.github/.github/workflows/dependabot-automerge.yml@main
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
.DS_Store
/Manifest.toml
/dev/
/docs/build/
/docs/site/
10 changes: 1 addition & 9 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
name = "EasyConfig"
uuid = "acab07b0-f158-46d4-8913-50acef6d41fe"
version = "0.2.0"
authors = ["joshday <emailjoshday@gmail.com>"]
version = "0.1.16"

[deps]
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
StructTypes = "856f2bd8-1eba-4b0a-8007-ebc267875bd4"

[compat]
JSON3 = "1.4.0"
OrderedCollections = "1.3.2"
StructTypes = "1.1.0"
julia = "1"

[extras]
Expand Down
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![Build status](https://github.com/JuliaComputing/EasyConfig.jl/workflows/CI/badge.svg)](https://github.com/JuliaComputing/EasyConfig.jl/actions?query=workflow%3ACI+branch%3Amaster)
[![Codecov](https://codecov.io/gh/JuliaComputing/EasyConfig.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaComputing/EasyConfig.jl)
[![deps](https://juliahub.com/docs/EasyConfig/deps.svg)](https://juliahub.com/ui/Packages/EasyConfig/tMFix?t=2)
[![version](https://juliahub.com/docs/EasyConfig/version.svg)](https://juliahub.com/ui/Packages/EasyConfig/tMFix)
[![pkgeval](https://juliahub.com/docs/EasyConfig/pkgeval.svg)](https://juliahub.com/ui/Packages/EasyConfig/tMFix)
Expand Down Expand Up @@ -76,18 +75,9 @@ let
end
```


# Note

- Accessing a property that doesn't exist will create an empty `Config()`.
- Clean up stranded empty `Config`s with `delete_empty!(::Config)`.

```julia
c = Config()

c.one.two.three.four.five.six == Config()

# Internally we make the assumption that empty Config's shouldn't be there.
# Some functions will therefore call `delete_empty!` under the hood:
isempty(c) == true
```
- Accessing a non-existent property creates an `Undefined`.
- This is necessary for assigning deeply nested properties (an eventual `setindex!` after nested `getindex`-es).
- `config.a == Undefined(config, [:a])`, `config.a.b == Undefined(config, [:a, :b])`, etc.
- `config.a.b.c = 1` == `Undefined(config, [:a, :b])[:c] = 1`
92 changes: 0 additions & 92 deletions docs/Manifest.toml

This file was deleted.

2 changes: 0 additions & 2 deletions docs/Project.toml

This file was deleted.

17 changes: 0 additions & 17 deletions docs/make.jl

This file was deleted.

8 changes: 0 additions & 8 deletions docs/src/index.md

This file was deleted.

Loading
Loading