Skip to content

Use babashka tasks for CI #622

Use babashka tasks for CI

Use babashka tasks for CI #622

name: ci
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-22.04
container:
image: ghcr.io/day8/chrome-87:6.0.8
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Maven cache
uses: actions/cache@v1
id: maven-cache
with:
path: /root/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('project.clj', 'deps.edn', '.github/workflows/**') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 'latest'
bb: 'latest'
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
~/.npm
.shadow-cljs
key: cljdeps-${{ hashFiles('deps.edn') }}
restore-keys: cljdeps-
- run: bb ci
- run: bb build-report-ci
- uses: actions/upload-artifact@v4
with:
name: build-report
path: target/build-report.html
- name: Slack notification
uses: homoluctus/[email protected]
if: failure() || cancelled()
with:
type: ${{ job.status }}
job_name: re-com Tests
channel: '#oss-robots'
url: ${{ secrets.SLACK_WEBHOOK }}
commit: true
token: ${{ secrets.GITHUB_TOKEN }}