-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6515c29
commit 7f5be54
Showing
13 changed files
with
126 additions
and
96 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,14 @@ | ||
name: Install and cache deps | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: jdx/mise-action@v2 | ||
- name: Cache Clojure dev dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-clojure-dev-${{ hashFiles('**/deps.edn') }} | ||
restore-keys: ${{ runner.os }}-clojure-dev | ||
- name: Install Clojure dev deps | ||
shell: bash | ||
run: make deps |
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,11 @@ | ||
name: Restore deps | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: jdx/mise-action@v2 | ||
- name: Restore cached clojure dev deps | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-clojure-dev-${{ hashFiles('**/deps.edn') }} | ||
restore-keys: ${{ runner.os }}-clojure-dev |
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,34 @@ | ||
name: Checks | ||
|
||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: jdx/mise-action@v2 | ||
- name: Fmt | ||
run: make fmt-check | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/restore-deps | ||
- name: Lint | ||
run: make lint-init && make lint | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/restore-deps | ||
- name: Run tests | ||
env: | ||
DATABASE_HOST_PORT: "localhost:5555" | ||
run: | | ||
docker-compose up -d test-postgres | ||
make test-ci |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Checks | ||
|
||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
deps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/cache-deps | ||
|
||
checks: | ||
needs: [ deps ] | ||
uses: ./.github/workflows/_checks.yaml |
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,26 @@ | ||
name: Checks | ||
|
||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
deps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/cache-deps | ||
|
||
checks: | ||
needs: [ deps ] | ||
uses: ./.github/workflows/_checks.yaml | ||
|
||
outdated: | ||
runs-on: ubuntu-latest | ||
needs: [ deps ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/restore-deps | ||
- name: Outdated deps | ||
run: make outdated |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[tools] | ||
task = "3.37.2" | ||
java = "temurin-21.0.2+13.0.LTS" | ||
clojure = "1.11.3.1463" | ||
cljstyle = "0.16.626" | ||
clj-kondo = "2024.05.24" | ||
lefthook = "1.6.14" |
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
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