-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Cirru/update-workflow
upgrade deps and switch to deps-library
- Loading branch information
Showing
9 changed files
with
442 additions
and
936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
name: Deploy package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- run: curl -O https://download.clojure.org/install/linux-install-1.10.1.507.sh && chmod +x linux-install-1.10.1.507.sh && sudo ./linux-install-1.10.1.507.sh | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
name: Cache node modules of yarn | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Cache Clojars | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-clojars | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('shadow-cljs.edn') }} | ||
restore-keys: | | ||
${{ runner.os }}-clojars | ||
- name: run tests | ||
run: 'yarn && yarn test' | ||
|
||
- run: echo Working on ${{ github.ref }} | ||
|
||
- name: deploy to clojars | ||
run: env CLOJARS_USERNAME=jiyinyiyong CLOJARS_PASSWORD=${{ secrets.CLOJARS_PASSWORD }} clojure -A:release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
name: Tests | ||
|
||
on: | ||
pull_request: {} | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
upload-assets: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: docker://timbru31/java-node:latest | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
name: Cache node modules of yarn | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Cache Clojars | ||
uses: actions/cache@v1 | ||
env: | ||
cache-name: cache-clojars | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('shadow-cljs.edn') }} | ||
restore-keys: | | ||
${{ runner.os }}-clojars | ||
- run: yarn && yarn test | ||
name: run test |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
{ | ||
:paths ["src" "polyfill"] | ||
:aliases { | ||
:release { | ||
:extra-deps { | ||
applied-science/deps-library {:mvn/version "0.4.0"} | ||
} | ||
:main-opts ["-m" "applied-science.deps-library"] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
{:version "0.2.8-a1" | ||
:group-id "cirru" | ||
:artifact-id "sepal" | ||
:skip-tag true | ||
:description "Generate Clojure code from syntax tree" | ||
:scm-url "https://github.com/Cirru/sepal.clj"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
{:source-paths ["src" "polyfill"] | ||
:dependencies [[fipp "0.6.12"]] | ||
:builds {:test {:target :node-script | ||
:output-to "target/test.js" | ||
:main cirru-sepal.tree-test/main! | ||
:devtools {:after-load cirru-sepal.tree-test/reload!}}}} | ||
{ | ||
:source-paths ["src" "polyfill"] | ||
:dependencies [ | ||
[fipp "0.6.23"] | ||
] | ||
:builds { | ||
:test { | ||
:target :node-script, :output-to "target/test.js", :main cirru-sepal.tree-test/main! | ||
:devtools {:after-load cirru-sepal.tree-test/reload!} | ||
} | ||
} | ||
} |
Oops, something went wrong.