diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml new file mode 100644 index 0000000..3f6932a --- /dev/null +++ b/.github/workflows/clojure.yml @@ -0,0 +1,61 @@ +name: Clojure CI + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +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: + branches: [ "master", "feature-*" ] + pull_request: + branches: [ "master" ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + 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 + chmod +x lein + sudo mv lein /usr/local/bin/ + export PATH=$PATH:/usr/local/bin/ + - name: Install dependencies + 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 + 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 + 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) 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 @@ - +