Skip to content

update CI/CD

update CI/CD #94

name: ci
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-22.04
container:
# Source: https://github.com/day8/dockerfile-for-dev-ci-image
image: ghcr.io/day8/dockerfile-for-dev-ci-image/chrome-56:2
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
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@v3
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@v3
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@v3
with:
path: .shadow-cljs
key: ${{ runner.os }}-shadow-cljs-${{ github.sha }}
restore-keys: |
${{ runner.os }}-shadow-cljs-
- run: lein ci
- name: Slack notification
uses: lazy-actions/slatify@master
if: failure() || cancelled()
with:
type: ${{ job.status }}
job_name: re-frame-async-flow-fx Tests
channel: '#oss-robots'
url: ${{ secrets.SLACK_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}