Skip to content

Update changelog for release 1.12.0 #76

Update changelog for release 1.12.0

Update changelog for release 1.12.0 #76

name: cd
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"
jobs:
test:
name: Test
runs-on: ubuntu-latest
container:
# Source: https://github.com/day8/dockerfiles-for-dev-ci-images
image: ghcr.io/day8/chrome-56:2
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1
- name: Maven cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: /root/.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: Sample Project shadow-cljs compiler cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: examples/todomvc/.shadow-cljs
key: ${{ runner.os }}-shadow-cljs-${{ github.sha }}
restore-keys: |
${{ runner.os }}-shadow-cljs-
- name: Root shadow-cljs test compiler cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: .shadow-cljs
key: ${{ runner.os }}-shadow-cljs-test-${{ github.sha }}
restore-keys: |
${{ runner.os }}-shadow-cljs-test-
- run: lein test
- name: Compile and run cljs tests
run: |
npm install
npx shadow-cljs compile test
- name: Probe :advanced ^:export contract on public.cljs
run: |
npx shadow-cljs release public-advanced
node out/public-advanced.js
- name: Compile Sample Project
run: |
npm install
npx shadow-cljs compile app
working-directory: "examples/todomvc"
- name: Slack notification
uses: homoluctus/slatify@61c6b12d2ae226db04062ff9b43d9679e2d53236 # v2.0.1
if: failure() || cancelled()
with:
type: ${{ job.status }}
job_name: re-frame-10x Tests
channel: '#re-frame'
url: ${{ secrets.SLACK_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}
release:
name: Release
needs: test
runs-on: ubuntu-latest
container:
# Source: https://github.com/day8/dockerfiles-for-dev-ci-images
image: ghcr.io/day8/chrome-56:2
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
# All of the Git history is required for day8/lein-git-inject to determine the version string.
fetch-depth: 0
- name: Maven cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: /root/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj', '.github/workflows/**') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run lein release
env:
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_TOKEN: ${{ secrets.CLOJARS_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
lein release
# This creates a 'GitHub Release' from the tag and includes link to the CHANGELOG
# at that point in the Git history. We do not use draft or prerelease features as
# we always want the latest release to show in the right hand column of the project
# page regardless of if it is a stable release.
- name: Create GitHub Release
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
[Changelog](https://github.com/day8/re-frame-10x/blob/master/CHANGELOG.md)
draft: false
prerelease: false
- name: Slack notification
uses: homoluctus/slatify@61c6b12d2ae226db04062ff9b43d9679e2d53236 # v2.0.1
if: always()
with:
type: ${{ job.status }}
job_name: re-frame-10x Deployment
channel: '#oss-robots'
url: ${{ secrets.SLACK_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}