Use babashka tasks for CI #636
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@v4 | |
- 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: Fix git dubious directory ownership error | |
run: git config --global --add safe.directory /__w/re-com/re-com | |
- run: mkdir -p run/resources/public/compiled_prod/demo | |
- run: id | |
- run: ls -lah | |
- run: ls -lah run/ | |
- run: ls -lah run/resources/ | |
- run: ls -lah run/resources/public/ | |
- run: ls -lah run/resources/public/compiled_prod/ | |
- 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 }} |