never attempt to put error/empty results on the output channel #978
Workflow file for this run
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: | |
schedule: | |
- cron: 13 21 * * * | |
jobs: | |
docker-build-cache: | |
name: docker build cache | |
runs-on: ci-cd | |
steps: | |
- uses: docker/setup-buildx-action@v3 | |
with: | |
install: true | |
- uses: docker/build-push-action@v5 | |
id: build | |
with: | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
tags: fluree/server | |
target: builder | |
load: true | |
cljfmt-check: | |
name: cljfmt check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- uses: DeLaGuardo/[email protected] | |
with: | |
cli: 'latest' | |
cljfmt: 'latest' | |
- run: make cljfmt-check | |
clj-kondo-lint: | |
name: clj-kondo lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeLaGuardo/[email protected] | |
with: | |
cli: 'latest' | |
clj-kondo: 'latest' | |
- run: make clj-kondo-lint-ci | |
test: | |
name: run tests | |
needs: docker-build-cache | |
runs-on: ci-cd | |
steps: | |
- uses: docker/setup-buildx-action@v3 | |
with: | |
install: true | |
- uses: docker/build-push-action@v5 | |
with: | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
tags: fluree/server | |
target: builder | |
load: true | |
- name: Run tests | |
run: docker run fluree/server make test | |
notifications: | |
name: send notifications | |
if: always() | |
runs-on: ubuntu-latest | |
needs: [test] | |
steps: | |
- if: github.ref == 'refs/heads/main' && failure() | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
uses: voxmedia/github-action-slack-notify-build@v2 | |
with: | |
channel: development | |
status: FAILED | |
color: danger |