From 32b4ae4c2f5b56adedaee332a75317ea52ce9a52 Mon Sep 17 00:00:00 2001 From: Victor Gil <2041346+baskeboler@users.noreply.github.com> Date: Thu, 12 Jun 2025 20:16:15 -0300 Subject: [PATCH 01/14] Create clojure.yml create new build and test workflow triggered on pushes to main and feature branches , pull requests and manually --- .github/workflows/clojure.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/clojure.yml diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml new file mode 100644 index 0000000..bb19c5c --- /dev/null +++ b/.github/workflows/clojure.yml @@ -0,0 +1,21 @@ +name: Clojure CI + +on: + push: + branches: [ "master", "feature-*" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: lein deps + - name: Run tests + run: lein test From 536113e3deabc131f161174412817fc8fdb0efd0 Mon Sep 17 00:00:00 2001 From: victor gil Date: Thu, 12 Jun 2025 20:47:34 -0300 Subject: [PATCH 02/14] Add steps to install Leiningen in CI workflow --- .github/workflows/clojure.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index bb19c5c..839fd6d 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -15,6 +15,12 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Leiningen + run: | + curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > lein + chmod +x lein + sudo mv lein /usr/local/bin/ + export PATH=$PATH:/usr/local/bin/ - name: Install dependencies run: lein deps - name: Run tests From f3df3707f6cb35c18bcdc937ced9e6595653806f Mon Sep 17 00:00:00 2001 From: victor gil Date: Thu, 12 Jun 2025 20:51:26 -0300 Subject: [PATCH 03/14] Add Java 8 installation step to Clojure CI workflow --- .github/workflows/clojure.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 839fd6d..12e5cf1 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -15,6 +15,11 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Java 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' - name: Install Leiningen run: | curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > lein From a42f43ed49e64c836d1714fb8f2349b071b34f83 Mon Sep 17 00:00:00 2001 From: victor gil Date: Thu, 12 Jun 2025 20:54:40 -0300 Subject: [PATCH 04/14] Add PhantomJS installation step to Clojure CI workflow --- .github/workflows/clojure.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 12e5cf1..e3c2c0b 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -26,6 +26,10 @@ jobs: chmod +x lein sudo mv lein /usr/local/bin/ export PATH=$PATH:/usr/local/bin/ + - name: Install PhantomJS + run: | + sudo apt-get update + sudo apt-get install -y phantomjs - name: Install dependencies run: lein deps - name: Run tests From 5c252f9ae0991e422e94d3e1e84ff3758db852e1 Mon Sep 17 00:00:00 2001 From: Victor Gil <2041346+baskeboler@users.noreply.github.com> Date: Fri, 13 Jun 2025 00:20:21 +0000 Subject: [PATCH 05/14] =?UTF-8?q?Actualizar=20comandos=20de=20instalaci?= =?UTF-8?q?=C3=B3n=20de=20PhantomJS=20en=20el=20flujo=20de=20trabajo=20de?= =?UTF-8?q?=20Clojure=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/clojure.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index e3c2c0b..6ff2179 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -28,8 +28,8 @@ jobs: export PATH=$PATH:/usr/local/bin/ - name: Install PhantomJS run: | - sudo apt-get update - sudo apt-get install -y phantomjs + sudo apt update + sudo apt install -y phantomjs - name: Install dependencies run: lein deps - name: Run tests From 7dbf87c6d520b099717a30919e9dbd9a8edd003e Mon Sep 17 00:00:00 2001 From: Victor Gil <2041346+baskeboler@users.noreply.github.com> Date: Fri, 13 Jun 2025 00:28:54 +0000 Subject: [PATCH 06/14] =?UTF-8?q?Actualizar=20la=20versi=C3=B3n=20de=20Ubu?= =?UTF-8?q?ntu=20a=2022.04=20en=20el=20flujo=20de=20trabajo=20de=20Clojure?= =?UTF-8?q?=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/clojure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 6ff2179..4166fa3 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -11,7 +11,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 From d6457065f1a7da1532b6262a1bacbbdf050e2f10 Mon Sep 17 00:00:00 2001 From: Victor Gil <2041346+baskeboler@users.noreply.github.com> Date: Fri, 13 Jun 2025 00:38:17 +0000 Subject: [PATCH 07/14] =?UTF-8?q?Revert=20la=20versi=C3=B3n=20de=20Ubuntu?= =?UTF-8?q?=20a=2020.04=20en=20el=20flujo=20de=20trabajo=20de=20Clojure=20?= =?UTF-8?q?CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/clojure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 4166fa3..51406fe 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -11,7 +11,7 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 From 6755ad8c2fae51724a131963e1d3024bb990b9ee Mon Sep 17 00:00:00 2001 From: Victor Gil <2041346+baskeboler@users.noreply.github.com> Date: Fri, 13 Jun 2025 00:53:52 +0000 Subject: [PATCH 08/14] =?UTF-8?q?Actualizar=20el=20flujo=20de=20trabajo=20?= =?UTF-8?q?de=20Clojure=20CI=20para=20usar=20Ubuntu=20m=C3=A1s=20reciente?= =?UTF-8?q?=20y=20cambiar=20la=20instalaci=C3=B3n=20de=20PhantomJS=20a=20n?= =?UTF-8?q?pm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/clojure.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 51406fe..94a1407 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -7,12 +7,9 @@ on: branches: [ "master" ] workflow_dispatch: - jobs: build: - - runs-on: ubuntu-20.04 - + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install Java 8 @@ -28,8 +25,7 @@ jobs: export PATH=$PATH:/usr/local/bin/ - name: Install PhantomJS run: | - sudo apt update - sudo apt install -y phantomjs + npm install -g phantomjs-prebuilt - name: Install dependencies run: lein deps - name: Run tests From af7418160ffdbf938e79304c73084e05dbedd882 Mon Sep 17 00:00:00 2001 From: victor gil Date: Thu, 12 Jun 2025 22:35:19 -0300 Subject: [PATCH 09/14] Remove PhantomJS installation step and update test command to compile in CI workflow --- .github/workflows/clojure.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index e3c2c0b..94ca2f4 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -26,11 +26,7 @@ jobs: chmod +x lein sudo mv lein /usr/local/bin/ export PATH=$PATH:/usr/local/bin/ - - name: Install PhantomJS - run: | - sudo apt-get update - sudo apt-get install -y phantomjs - name: Install dependencies run: lein deps - name: Run tests - run: lein test + run: lein compile From 0f68d74c43ff8acfe8c48e894571ce352a9b1588 Mon Sep 17 00:00:00 2001 From: victor gil Date: Thu, 12 Jun 2025 23:05:01 -0300 Subject: [PATCH 10/14] Add CI badge to README for Clojure workflow --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e579e40..98827d8 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # om-widgets +[![Clojure CI](https://github.com/baskeboler/om-widgets/actions/workflows/clojure.yml/badge.svg)](https://github.com/baskeboler/om-widgets/actions/workflows/clojure.yml) + A Clojure clojurescript library that implement om/react widgets. [![Clojars Project](http://clojars.org/org.clojars.intception/om-widgets/latest-version.svg)](http://clojars.org/org.clojars.intception/om-widgets) From 6f67c0089ef85a57a87002313f3da9872e0b852a Mon Sep 17 00:00:00 2001 From: Victor Gil <2041346+baskeboler@users.noreply.github.com> Date: Fri, 13 Jun 2025 02:40:25 +0000 Subject: [PATCH 11/14] =?UTF-8?q?Agregar=20pasos=20para=20subir=20archivos?= =?UTF-8?q?=20est=C3=A1ticos=20como=20artefacto=20y=20desplegar=20en=20Git?= =?UTF-8?q?Hub=20Pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/clojure.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 7ba78fa..10448ca 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -27,3 +27,22 @@ jobs: run: lein deps - name: Run tests run: lein compile + + - name: Upload static files as artifact + id: deployment + uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action + with: + path: ./resources/public/examples/basic/ + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + From 6877e91f3fe9c1dc4dc0ec8e604f8e168c1dfd41 Mon Sep 17 00:00:00 2001 From: Victor Gil <2041346+baskeboler@users.noreply.github.com> Date: Fri, 13 Jun 2025 02:58:32 +0000 Subject: [PATCH 12/14] Agregar permisos para el GITHUB_TOKEN para permitir el despliegue en GitHub Pages --- .github/workflows/clojure.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index 10448ca..d072ebf 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -1,5 +1,11 @@ name: Clojure CI +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + on: push: branches: [ "master", "feature-*" ] From 9e918e3939c43968cd84ce6ae11443cbfb80f6a4 Mon Sep 17 00:00:00 2001 From: victor gil Date: Fri, 13 Jun 2025 00:21:44 -0300 Subject: [PATCH 13/14] Add concurrency settings to GitHub Actions workflow and configure pages step --- .github/workflows/clojure.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index d072ebf..3f6932a 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -5,6 +5,12 @@ permissions: contents: read pages: write id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false on: push: @@ -33,7 +39,8 @@ jobs: run: lein deps - name: Run tests run: lein compile - + - name: Setup Pages + uses: actions/configure-pages@v5 - name: Upload static files as artifact id: deployment uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action From 743479885e1e16cd5624921d56a033f246df8a4a Mon Sep 17 00:00:00 2001 From: victor gil Date: Fri, 13 Jun 2025 00:28:50 -0300 Subject: [PATCH 14/14] Update Bootstrap CSS link to use HTTPS for improved security --- resources/public/examples/basic/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/public/examples/basic/index.html b/resources/public/examples/basic/index.html index 28080ad..0aac5e4 100644 --- a/resources/public/examples/basic/index.html +++ b/resources/public/examples/basic/index.html @@ -20,7 +20,7 @@ - +