-
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 local '.github/workflows/clojurescript.yml' with remote …
…'sources/github-actions/workflows/clojurescript.yml' Sourced from: https://github.com/Wall-Brew-Co/rebroadcast
- Loading branch information
1 parent
bc2d7cd
commit 3031db4
Showing
1 changed file
with
40 additions
and
33 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 |
---|---|---|
@@ -1,53 +1,60 @@ | ||
# Executes ClojureScript tests using Leiningen / Karma | ||
name: Clojurescript 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/checkout@v4.2.1 | ||
|
||
- name: Cache maven dependencies | ||
uses: actions/cache@v4 | ||
env: | ||
- name: Checkout Repository | ||
id: checkout | ||
uses: actions/checkout@v4.2.1 | ||
|
||
- 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 }}-${{ env.cache-name }}-clj-${{ hashFiles('**/project.clj') }} | ||
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }} | ||
restore-keys: | | ||
${{ runner.os }}-clj | ||
- name: Cache npm dependencies | ||
id: cache-npm | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-npm | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ env.cache-name }}-clj | ||
- name: Cache npm dependencies | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-npm | ||
with: | ||
path: ~/.npm | ||
save-always: true | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node | ||
- name: Install Clojure/ClojureScript dependencies | ||
run: lein deps | ||
|
||
- name: Install node.js dependencies | ||
run: npm install | ||
|
||
- name: Build Clojurescript | ||
run: lein cljsbuild once test | ||
|
||
- name: Run all tests | ||
run: lein doo once | ||
${{ runner.os }}-node | ||
- name: Install Clojure/ClojureScript Dependencies | ||
id: install-clojure-deps | ||
run: lein deps | ||
|
||
- name: Install node.js Dependencies | ||
id: install-node-deps | ||
run: npm install | ||
|
||
- name: Build Clojurescript | ||
id: build-cljs | ||
run: lein cljsbuild once test | ||
|
||
- name: Run All Tests | ||
id: run-tests | ||
run: lein doo once | ||
|
||
# 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/clojurescript.yml |