Compare commits
2 commits
main
...
release_ac
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7c6c306e7 | ||
|
|
224aeeebbe |
4 changed files with 64 additions and 11 deletions
18
.github/actions/setup-build/action.yml
vendored
Normal file
18
.github/actions/setup-build/action.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
name: Set up Build
|
||||||
|
description: Sets up Build
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '8'
|
||||||
|
distribution: temurin
|
||||||
|
- name: Cache dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-lein-${{ hashFiles('**/project.clj') }}
|
||||||
|
restore-keys: ${{ runner.os }}-lein-
|
||||||
|
- name: Clear existing docker image cache
|
||||||
|
shell: bash
|
||||||
|
run: docker image prune -af
|
||||||
17
.github/workflows/clojure.yml
vendored
17
.github/workflows/clojure.yml
vendored
|
|
@ -6,14 +6,17 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Install dependencies
|
- name: Setup Build
|
||||||
run: lein deps
|
uses: ./.github/actions/setup-build
|
||||||
- name: Run tests
|
- name: Install dependencies
|
||||||
run: lein test
|
run: lein deps
|
||||||
|
- name: Run tests
|
||||||
|
run: lein test
|
||||||
|
|
|
||||||
28
.github/workflows/release.yml
vendored
Normal file
28
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Setup Build
|
||||||
|
uses: ./.github/actions/setup-build
|
||||||
|
- name: Set version
|
||||||
|
run: |
|
||||||
|
lein change version set '"${{github.event.release.tag_name}}"'
|
||||||
|
- name: Release ${{github.event.release.tag_name}}
|
||||||
|
run: lein with-profile release deploy maven
|
||||||
|
env:
|
||||||
|
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||||
|
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
|
||||||
12
project.clj
12
project.clj
|
|
@ -1,7 +1,7 @@
|
||||||
(defproject clj-test-containers "0.7.4"
|
(defproject clj-test-containers "unspecified"
|
||||||
:description "A lightweight, unofficial wrapper around the Testcontainers Java library"
|
:description "A lightweight, official wrapper around the Testcontainers Java library"
|
||||||
|
|
||||||
:url "https://github.com/javahippie/clj-test-containers"
|
:url "https://github.com/testcontainers/testcontainers-clj"
|
||||||
|
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
|
|
@ -25,6 +25,10 @@
|
||||||
[org.testcontainers/postgresql "1.19.0"]
|
[org.testcontainers/postgresql "1.19.0"]
|
||||||
[com.fzakaria/slf4j-timbre "0.3.21"]
|
[com.fzakaria/slf4j-timbre "0.3.21"]
|
||||||
[nrepl "1.0.0"]]
|
[nrepl "1.0.0"]]
|
||||||
:source-paths ["dev-src"]}}
|
:source-paths ["dev-src"]}
|
||||||
|
:release {:deploy-repositories [["maven" {:url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
|
||||||
|
:username :env/ossrh_username
|
||||||
|
:password :env/ossrh_password
|
||||||
|
:sign-releases false}]]}}
|
||||||
|
|
||||||
:target-path "target/%s")
|
:target-path "target/%s")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue