Skip to content

Deploy docs via Pages artifact instead of gh-pages branch (#832) #497

Deploy docs via Pages artifact instead of gh-pages branch (#832)

Deploy docs via Pages artifact instead of gh-pages branch (#832) #497

name: ci
on:
push:
paths-ignore:
- "bin/**"
- "docs/**"
- "images/**"
- ".editorconfig"
- ".gitignore"
- "CHANGELOG.md"
- "CITATION.md"
- "CONTRIBUTING.md"
- "license.txt"
- "README.md"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- run: git config --global --add safe.directory /__w/re-frame/re-frame
- name: Maven cache
id: maven-cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/project.clj', '.github/workflows/**') }}
restore-keys: |
${{ runner.os }}-maven-
- name: npm cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('project.clj') }}-${{ hashFiles('**/deps.cljs') }}
restore-keys: |
${{ runner.os }}-npm-
- name: shadow-cljs compiler cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: .shadow-cljs
key: ${{ runner.os }}-shadow-cljs-${{ github.sha }}
restore-keys: |
${{ runner.os }}-shadow-cljs-
- uses: browser-actions/setup-chrome@c785b87e244131f27c9f19c1a33e2ead956ab7ce # v1
id: setup-chrome
with:
chrome-version: 811961
- name: Setup java
uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3
with:
distribution: 'temurin'
java-version: '24'
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@bc7570e912b028bbcc22f457adec7fdf98e2f4ed # 12.5
with:
cli: 'latest'
bb: 'latest'
- run: bb test :chrome-path '"${{ steps.setup-chrome.outputs.chrome-path }}"'
- name: Test simple example
working-directory: examples/simple
run: |
npm install
npm run release
- name: Test todomvc example
working-directory: examples/todomvc
run: |
npm install
npm run release
- name: Verify cljdoc Configuration
run: curl -fsSL https://raw.githubusercontent.com/cljdoc/cljdoc/master/script/verify-cljdoc-edn | bash -s docs/cljdoc.edn
- name: Slack notification
uses: homoluctus/slatify@61c6b12d2ae226db04062ff9b43d9679e2d53236 # v2.0.1
if: failure() || cancelled()
with:
type: ${{ job.status }}
job_name: re-frame Tests
channel: '#oss-robots'
url: ${{ secrets.SLACK_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}