Skip to content

Commit

Permalink
Merge pull request #2 from zotonic/github-ci-no-publish
Browse files Browse the repository at this point in the history
ci: Remove automatic publish due to action problems
  • Loading branch information
mworrell authored Jul 7, 2023
2 parents beaa0ca + 0c0d310 commit 14b2748
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 30 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/hex-publish.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
name: Test

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
# events but only for the main branch
on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
otp_version: [22.3, 23, 24]
otp_version: [24, 25, 26]
os: [ubuntu-latest]

container:
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ shell: $(REBAR) compile
$(REBAR) $(REBAR_OPTS) shell

dialyzer: $(REBAR)
$(REBAR) as test dialyzer
$(REBAR) dialyzer

xref: $(REBAR)
$(REBAR) as test xref
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}.

{deps, [
{zotonic_stdlib, "1.5.3"}
{zotonic_stdlib, "1.15.1"}
]}.

{xref_checks, [
Expand Down
4 changes: 2 additions & 2 deletions src/rdf_triples.erl
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ ns_normalize(Pred) -> Pred.
%% @doc Combine a list of triples into a collection of JSON-LD (alike) documents.
%% Only non blank-node dcuments are returned. Blank nodes are substituted into the
%% documents.
-spec to_docs( Triples ) -> {ok, Docs}
-spec to_docs( Triples ) -> Docs
when Triples :: [ zotonic_rdf:rdf_triple() ],
Docs :: #{ zotonic_rdf:uri() := zotonic_rdf:rdf_doc() }.
Docs :: [ zotonic_rdf:rdf_doc() ].
to_docs(Triples) ->
Uris = collect(Triples),
maps:fold(
Expand Down
2 changes: 1 addition & 1 deletion src/zotonic_rdf.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{description, "RDF triples handling - map triples to resources - RDF support routines."},
{vsn, "git"},
{registered, []},
{applications, [kernel, stdlib, logger]},
{applications, [kernel, stdlib, zotonic_stdlib]},
{env, []},
{modules, []},
{doc, "doc"},
Expand Down
6 changes: 3 additions & 3 deletions src/zotonic_rdf.erl
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ blank_id() ->
%% @doc Combine triples to one or more documents. Every document
%% with a non-blank id is returned separately. The documents are mapped
%% using <code>uri => rdf_doc</code>
-spec triples_to_docs( Triples ) -> {ok, Docs}
when Triples :: [ rdf_triple() ],
Docs :: #{ uri() := rdf_doc() }.
-spec triples_to_docs( Triples ) -> Docs
when Triples :: [ zotonic_rdf:rdf_triple() ],
Docs :: [ zotonic_rdf:rdf_doc() ].
triples_to_docs(Triples) ->
rdf_triples:to_docs(Triples).

Expand Down

0 comments on commit 14b2748

Please sign in to comment.