Skip to content

Commit

Permalink
Merge pull request #1 from yetanalytics/init-setup
Browse files Browse the repository at this point in the history
Initial setup
  • Loading branch information
kelvinqian00 authored Mar 8, 2023
2 parents fdeb328 + ce14f36 commit 38684d5
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 16 deletions.
15 changes: 1 addition & 14 deletions .gitignore
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
28 changes: 26 additions & 2 deletions README.md
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.
44 changes: 44 additions & 0 deletions action.yml
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 }}

0 comments on commit 38684d5

Please sign in to comment.