File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ release :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v2
11+ with :
12+ persist-credentials : false
13+
14+ - uses : actions/setup-java@v2
15+ with :
16+ distribution : " zulu"
17+ java-version : " 17"
18+
19+ - uses : DeLaGuardo/setup-clojure@4.0
20+ with :
21+ cli : 1.10.3.1087
22+ github-token : ${{ secrets.GITHUB_TOKEN }}
23+
24+ - name : Import GPG key
25+ uses : crazy-max/ghaction-import-gpg@v4.1.0
26+ with :
27+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
28+ passphrase : ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
29+ git_user_signingkey : true
30+ git_commit_gpgsign : true
31+
32+ # Release the next version
33+ - name : Semantic Release
34+ id : semantic
35+ uses : cycjimmy/semantic-release-action@v2.7.0
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
38+ with :
39+ semantic_version : 18.0.1
40+ extra_plugins : |
41+ @semantic-release/changelog@6.0.1
42+ @semantic-release/exec@6.0.3
43+ @semantic-release/github@8.0.2
44+ @semantic-release/git@10.0.1
45+ conventional-changelog-conventionalcommits@4.6.1
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ parsec :
8+ runs-on : ubuntu-latest
9+ defaults :
10+ run :
11+ working-directory : ./packages/parsec
12+ steps :
13+ - uses : actions/checkout@v2
14+
15+ - uses : actions/setup-java@v2
16+ with :
17+ distribution : " zulu"
18+ java-version : " 17"
19+
20+ - uses : DeLaGuardo/setup-clojure@4.0
21+ with :
22+ cli : 1.10.3.1087
23+ github-token : ${{ secrets.GITHUB_TOKEN }}
24+
25+ - name : Tests
26+ run : clojure -X:test
27+
28+ parsec-api :
29+ runs-on : ubuntu-latest
30+ defaults :
31+ run :
32+ working-directory : ./packages/parsec-api
33+ steps :
34+ - uses : actions/checkout@v2
35+
36+ - uses : actions/setup-java@v2
37+ with :
38+ distribution : " zulu"
39+ java-version : " 17"
40+
41+ - uses : DeLaGuardo/setup-clojure@4.0
42+ with :
43+ cli : 1.10.3.1087
44+ github-token : ${{ secrets.GITHUB_TOKEN }}
45+
46+ - name : Tests
47+ run : clojure -X:test
Original file line number Diff line number Diff line change 1+ branches :
2+ - main
3+ env :
4+ GIT_AUTHOR_NAME : eg-oss-ci
5+ GIT_AUTHOR_EMAIL : oss@expediagroup.com
6+ GIT_COMMITTER_NAME : eg-oss-ci
7+ GIT_COMMITTER_EMAIL : oss@expediagroup.com
8+ plugins :
9+ - - "@semantic-release/commit-analyzer"
10+ - preset : conventionalcommits
11+
12+ - - "@semantic-release/release-notes-generator"
13+ - preset : " conventionalcommits"
14+
15+ - - "@semantic-release/changelog"
16+ - changelogTitle : " # Changelog\n\n All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines."
17+
18+ - - "@semantic-release/exec"
19+ - prepareCmd : " echo ${nextRelease.version} > VERSION"
20+
21+ - - "@semantic-release/exec"
22+ - prepareCmd : |
23+ cd packages/parsec && clojure -T:build uber
24+ ls -lah target
25+ cd ../..
26+ cd packages/parsec-api && clojure -T:build uber
27+ ls -lah target
28+
29+ - - "@semantic-release/git"
30+ - message : " chore(release): ${nextRelease.version} [skip ci]\n\n ${nextRelease.notes}"
31+ assets :
32+ - CHANGELOG.md
33+ - packages/parsec/target/parsec-*-standalone.jar
34+ - packages/parsec-api/target/parsec-api-*-standalone.jar
35+
36+ - " @semantic-release/github"
Original file line number Diff line number Diff line change 1+ 1.0.0
Original file line number Diff line number Diff line change 22 (:require [clojure.tools.build.api :as b]))
33
44(def lib 'ExpediaGroup /parsec-api )
5- (def version (format " 2.0.%s " ( b/git-count-revs nil ) ))
5+ (def version (slurp " ../../VERSION " ))
66(def class-dir " target/classes" )
77(def basis (b/create-basis {:project " deps.edn" }))
88(def jar-file (format " target/%s-%s.jar" (name lib) version))
Original file line number Diff line number Diff line change 1+ ## Tests
12
3+ Run tests like this:
24
5+ ```
6+ clojure -X:test
7+ ```
38
49## Source Jar
510
6- The most common Clojure build creates a jar file containing Clojure source code. This is appropriate for use within other Clojure projects.
11+ The most common Clojure build creates a jar file containing Clojure source code. This is appropriate for use within other Clojure projects.
712
813```
914clojure -T:build clean
Original file line number Diff line number Diff line change 22 (:require [clojure.tools.build.api :as b]))
33
44(def lib 'ExpediaGroup /parsec )
5- (def version (format " 2.0.%s " ( b/git-count-revs nil ) ))
5+ (def version (slurp " ../../VERSION " ))
66(def class-dir " target/classes" )
77(def basis (b/create-basis {:project " deps.edn" }))
88(def jar-file (format " target/%s-%s.jar" (name lib) version))
3636 :class-dir class-dir})
3737 (b/uber {:class-dir class-dir
3838 :uber-file uber-file
39- :basis basis}))
39+ :basis basis}))
40+
41+ (defn print-version [_]
42+ (println version))
You can’t perform that action at this time.
0 commit comments