Use babashka tasks for CI #625
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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- | ||
- name: Echo workspace | ||
run: echo "Workspace directory: ${{ github.workspace }}" | ||
- name: Echo repo | ||
run: echo "Workspace directory: ${{ github.repository }}" | ||
- name: Fix git dubious directory ownership error | ||
run: git config --global --add safe.directory ${{ github.workspace }} | ||
- 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 }} |