-
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 #1 from yetanalytics/init-setup
Initial setup
- Loading branch information
Showing
3 changed files
with
71 additions
and
16 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 |
---|---|---|
@@ -1,14 +1 @@ | ||
pom.xml | ||
pom.xml.asc | ||
*.jar | ||
*.class | ||
/lib/ | ||
/classes/ | ||
/target/ | ||
/checkouts/ | ||
.lein-deps-sum | ||
.lein-repl-history | ||
.lein-plugins/ | ||
.lein-failures | ||
.nrepl-port | ||
.cpcache/ | ||
.DS_Store |
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,2 +1,26 @@ | ||
# actions-setup-env | ||
GitHub action to set up Java, Clojure, and Node environments | ||
# action-setup-env | ||
|
||
GitHub action to set up Java, Clojure, and Node environments. To run, invoke it as the first step in a workflow run: | ||
|
||
``` yaml | ||
steps: | ||
- name: Setup CI Environment | ||
uses: yetanalytics/action-setup-env@<tag> | ||
with: | ||
java-version: '11' | ||
java-distribution: 'temurin' | ||
node-version: '16' | ||
clojure-version: '1.11.1.1165' | ||
``` | ||
Default options are shown, they may be omitted. | ||
Will do the following: | ||
* ~~Check out the project~~ post v0, the calling workflow is expected to do this. | ||
* Install Java | ||
* Install Node | ||
* Install Clojure CLI | ||
which will provide an environment suitable for testing and building Clojure(Script) projects. | ||
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,44 @@ | ||
name: Setup Yeti CI/CD Environment | ||
|
||
description: Provides required software for testing and building Yet Analytics projects. | ||
|
||
inputs: | ||
java-version: | ||
description: Version of Java to install | ||
required: true | ||
default: '11' | ||
|
||
java-distribution: | ||
description: Distribution of Java to install | ||
required: true | ||
default: 'temurin' | ||
|
||
node-version: | ||
description: Version of Node to install | ||
required: true | ||
default: '16' | ||
|
||
clojure-version: | ||
description: Version of Clojure CLI to install | ||
required: true | ||
default: '1.11.1.1165' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: ${{ inputs.java-distribution }} | ||
java-version: ${{ inputs.java-version }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
|
||
- name: Setup Clojure | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
cli: ${{ inputs.clojure-version }} | ||
|