Skip to content

CI

CI #378

Workflow file for this run

name: CI
on:
push:
schedule:
- cron: 13 21 * * *
jobs:
docker-build-cache:
name: docker build cache
runs-on: [linux, large, docker]
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/http-api-gateway
target: builder
load: true
test:
name: run tests
needs: docker-build-cache
runs-on: [linux, large, docker]
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/http-api-gateway
target: builder
load: true
- name: Run tests
run: docker run fluree/http-api-gateway make ci
notifications:
name: send notifications
if: always()
runs-on: [linux, large, docker]
needs: [test]
steps:
- name:
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