-
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.
[bot] synced file(s) with Wall-Brew-Co/rebroadcast (#126)
* [bot] synced local '.cljstyle' with remote 'sources/clojure/.cljstyle' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.clj-kondo/config.edn' with remote 'sources/clojure/cljkondo/config.edn' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/PULL_REQUEST_TEMPLATE.md' with remote 'sources/github-actions/PULL_REQUEST_TEMPLATE.md' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/label.yml' with remote 'sources/github-actions/workflows/label.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/sync_labels.yml' with remote 'sources/github-actions/workflows/sync_labels.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/todo.yml' with remote 'sources/github-actions/workflows/todo.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/contributors.yml' with remote 'sources/github-actions/workflows/contributors.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/greetings.yml' with remote 'sources/github-actions/workflows/greetings.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/clojure.yml' with remote 'sources/github-actions/workflows/clojure.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/deploy_to_clojars.yml' with remote 'sources/github-actions/workflows/deploy_to_clojars.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/format.yml' with remote 'sources/github-actions/workflows/format.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/lint.yml' with remote 'sources/github-actions/workflows/lint.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/scanner.yml' with remote 'sources/github-actions/workflows/scanner.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local '.github/workflows/cljdoc_test.yml' with remote 'sources/github-actions/workflows/cljdoc_test.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast * [bot] synced local 'LICENSE' with remote 'sources/templates/LICENSE' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast
- Loading branch information
1 parent
6fd297e
commit 75961e7
Showing
15 changed files
with
183 additions
and
100 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
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,6 +1,6 @@ | ||
{:files {:extensions #{"clj" "cljs" "cljc" "cljx" "edn"} | ||
:ignore #{"target" ".git" ".idea" ".vscode" "node_modules" ".clj-kondo" ".calva" ".lsp"}} | ||
:rules {:namespaces {:enabled? false} | ||
:indentation {:indents {#"defspec" [[:inner 0]] | ||
#"defstate" [[:inner 0]] | ||
#"for-all" [[:inner 0]]}}}} | ||
:indentation {:indents {#"defspec" [[:inner 0]] | ||
#"defstate" [[:inner 0]] | ||
#"for-all" [[:inner 0]]}}}} |
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,31 +1,39 @@ | ||
# Verifies that the project is compatible with cljdoc, and that our documentation will render correctly. | ||
name: Check cljdoc compatibility | ||
|
||
on: ["pull_request", "workflow_dispatch"] | ||
|
||
jobs: | ||
check-cljdoc: | ||
|
||
# Cancel any runs in progress for the same workflow and PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Checkout Repository | ||
id: checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache maven dependencies | ||
- name: Cache Maven Dependencies | ||
id: cache-maven | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-maven | ||
with: | ||
path: ~/.m2 | ||
save-always: true | ||
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }} | ||
restore-keys: | | ||
${{ runner.os }}-clj | ||
- name: Package the library as a jar | ||
- name: Package The Library As A Jar | ||
id: package | ||
run: lein jar | ||
|
||
- name: cljdoc Check | ||
id: cljdoc-check | ||
uses: cljdoc/[email protected] | ||
|
||
# This file was automatically copied and populated by rebroadcast | ||
|
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,36 +1,41 @@ | ||
# Execute Clojure tests using Leiningen | ||
name: Clojure Tests | ||
|
||
on: ["workflow_dispatch", "pull_request"] | ||
|
||
jobs: | ||
test: | ||
|
||
# Cancel any runs in progress for the same workflow and PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Cache maven dependencies | ||
uses: actions/cache@v4 | ||
env: | ||
- name: Checkout Repository | ||
id: checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache Maven Dependencies | ||
id: cache-maven | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-maven | ||
with: | ||
with: | ||
path: ~/.m2 | ||
save-always: true | ||
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }} | ||
restore-keys: | | ||
${{ runner.os }}-clj | ||
- name: Install Clojure dependencies | ||
run: lein deps | ||
- name: Install Clojure Dependencies | ||
id: install-deps | ||
run: lein deps | ||
|
||
- name: Run all tests | ||
run: lein test | ||
- name: Run All Tests | ||
id: run-tests | ||
run: lein test | ||
|
||
# This file was automatically copied and populated by rebroadcast | ||
# Do not edit this file directly, instead modify the source at https://github.com/Wall-Brew-Co/rebroadcast/blob/master/sources/github-actions/workflows/clojure.yml |
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,5 @@ | ||
# Deploy the cuurent project to Clojars | ||
# All deployments use the Wall Brew Bot user | ||
name: Deploy to Clojars | ||
|
||
on: | ||
|
@@ -12,50 +14,65 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
- name: Checkout Repository | ||
id: checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache maven dependencies | ||
uses: actions/cache@v4 | ||
env: | ||
- name: Cache Maven Dependencies | ||
id: cache-maven | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-maven | ||
with: | ||
with: | ||
path: ~/.m2 | ||
save-always: true | ||
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }} | ||
restore-keys: | | ||
${{ runner.os }}-clj | ||
- name: Install Clojure dependencies | ||
run: lein deps | ||
- name: Install Clojure Dependencies | ||
id: install-deps | ||
run: lein deps | ||
|
||
- name: Validate Changelog Status | ||
run: lein sealog check | ||
# This isn't strictly required to deploy, but is a quality check against our documentation | ||
- name: Validate Changelog Status | ||
id: validate-changelog | ||
run: lein sealog check | ||
|
||
- name: Display Version | ||
run: lein sealog version | ||
# This helps us ensure that we are deploying the correct version | ||
- name: Display Version | ||
id: display-version | ||
run: lein sealog version | ||
|
||
- name: Run sanity tests | ||
run: lein test | ||
# This is a sanity check to ensure that the project is in a good state | ||
- name: Run Sanity Tests | ||
id: sanity-test | ||
run: lein test | ||
|
||
- name: Run build test | ||
run: lein jar | ||
# Compile the project into a jar file | ||
# This is the file that will be deployed to Clojars and is the final gate before deployment | ||
- name: Run Build Test | ||
id: build-test | ||
run: lein jar | ||
|
||
- name: Publish to Clojars | ||
env: | ||
CLOJARS_USER: ${{ secrets.CLOJARS_USER }} | ||
CLOJARS_PASS: ${{ secrets.CLOJARS_PASS }} | ||
run: lein deploy clojars | ||
- name: Publish To Clojars | ||
id: publish | ||
env: | ||
CLOJARS_USER: ${{ secrets.CLOJARS_USER }} | ||
CLOJARS_PASS: ${{ secrets.CLOJARS_PASS }} | ||
run: lein deploy clojars | ||
|
||
- name: Resolve version | ||
id: versionchk | ||
run: echo "VERSION=$(lein sealog version project.clj | tail -n 1)" >> $GITHUB_OUTPUT | ||
- name: Resolve version | ||
id: versionchk | ||
run: echo "VERSION=$(lein sealog version project.clj | tail -n 1)" >> $GITHUB_OUTPUT | ||
|
||
- name: Push Tag | ||
uses: hole19/[email protected] | ||
env: | ||
TAG: v${{ steps.versionchk.outputs.VERSION }} | ||
GITHUB_TOKEN: ${{ secrets.WALL_BREW_BOT_PAT }} | ||
# Push a tag to the repository to mark the version | ||
# This also helps Renovate locate Change Notes for dependency update PRs | ||
- name: Push Tag | ||
id: push-tag | ||
uses: hole19/[email protected] | ||
env: | ||
TAG: v${{ steps.versionchk.outputs.VERSION }} | ||
GITHUB_TOKEN: ${{ secrets.WALL_BREW_BOT_PAT }} | ||
|
||
# This file was automatically copied and populated by rebroadcast | ||
# Do not edit this file directly, instead modify the source at https://github.com/Wall-Brew-Co/rebroadcast/blob/master/sources/github-actions/workflows/deploy_to_clojars.yml |
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,5 @@ | ||
# Automatically format clojure code using cljstyle | ||
# For more information, please visit: https://github.com/Wall-Brew-Co/open-source/blob/master/README.md#automating-opinions | ||
name: Formatter | ||
|
||
on: [pull_request] | ||
|
@@ -10,22 +12,28 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: git checkout | ||
# Checkout the repository with our Wall Brew Bot Token | ||
# We need this so any changes can be committed back to the repository | ||
- name: Checkout Repository | ||
id: checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.WALL_BREW_BOT_PAT }} | ||
|
||
- name: Install cljstyle | ||
id: install-cljstyle | ||
uses: just-sultanov/setup-cljstyle@v1 | ||
with: | ||
version: '0.14.0' | ||
|
||
- name: Format Clojure code | ||
- name: Format Clojure Code | ||
id: format | ||
run: | | ||
cljstyle fix --report --report-timing --verbose | ||
- name: Commit changes | ||
- name: Commit Changes | ||
id: commit | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
commit_message: | | ||
|
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
Oops, something went wrong.