-
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.
Build is build and deployed autonomously (#3)
Co-authored-by: caumond <[email protected]>
- Loading branch information
Showing
32 changed files
with
601 additions
and
388 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,51 @@ | ||
name: Commit validation | ||
on: | ||
push: | ||
branches: '**' | ||
# Don't want to validate on tag push, only commits --> https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push | ||
jobs: | ||
clojure: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] # , windows-latest There is a path issue | ||
# macOS-latest is removed to save github costs | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '22' | ||
- name: Install clojure tools | ||
uses: DeLaGuardo/[email protected] | ||
with: | ||
cli: 1.12.0.1479 # Clojure CLI based on tools.deps | ||
bb: 1.12.195 # Babashka | ||
clj-kondo: 2024.11.14 # Clj-kondo | ||
zprint: 1.2.9 # zprint | ||
- name: Install fdfind | ||
run: sudo apt-get install -y fd-find | ||
- name: Setup zprint | ||
run: echo "{:search-config? true}" >> ~/.zprintrc | ||
- name: Cache clojure dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: /home/runner/.m2/repository | ||
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }} | ||
restore-keys: cljdeps- | ||
- name: Tests code alias + linter + forbidden words | ||
run: bb wf-4 -iawlp | ||
- name: Test code | ||
run: bb test test-bb test-unit | ||
- name: Write git diff - show what has been changed by zprint | ||
run: git diff | ||
- name: Pushed code should already be formatted | ||
uses: CatChen/check-git-status-action@v1 | ||
with: | ||
fail-if-not-clean: true | ||
request-changes-if-not-clean: false | ||
push-if-not-clean: false |
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,19 @@ | ||
name: Tag - Deployment to clojars | ||
# See https://github.com/jlesquembre/clojars-publish-action | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
clojars: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# This step checks out a copy of your repository. | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: jlesquembre/[email protected] | ||
env: | ||
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | ||
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
{:dev {:clj-nrepl-port 8010 | ||
:portal-port 8351} | ||
{:dev {:clj-nrepl-port 8010} | ||
:env :development} |
12 changes: 12 additions & 0 deletions
12
env/development/src/bb/automaton_build/repl/entry_point.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(ns automaton-build.repl.entry-point | ||
"Entry point for repl" | ||
(:require | ||
[nrepl.server :refer [start-server]])) | ||
|
||
(defn -main | ||
"Entry point" | ||
[& _args] | ||
(let [port 1234] | ||
(println "Automaton build development mode") | ||
(println "Start repl on port" port) | ||
(start-server :port port))) |
This file was deleted.
Oops, something went wrong.
Empty file.
File renamed without changes.
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,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<packaging>jar</packaging> | ||
<groupId>org.clojars.hephaistox</groupId> | ||
<artifactId>automaton-build</artifactId> | ||
<version>LATEST</version> | ||
<name>automan-build</name> | ||
<description>Hephaistox common tasks for project manipulation</description> | ||
<url>https://github.com/hephaistox/automaton-build</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>CC BY-NC 4.0</name> | ||
<url>https://creativecommons.org/licenses/by-nc/4.0/deed.en</url> | ||
</license> | ||
</licenses> | ||
|
||
<developers> | ||
<developer> | ||
<name>Hephaistox</name> | ||
</developer> | ||
</developers> | ||
|
||
<scm> | ||
<url>https://github.com/hephaistox/automaton-build</url> | ||
<developerConnection>scm:git:ssh://[email protected]:hephaistox/automaton-build.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
</project> |
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
Empty file.
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
Oops, something went wrong.