Skip to content

Simple CI for Pull Requests #1

Simple CI for Pull Requests

Simple CI for Pull Requests #1

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pre-build image and run make ci-build in dev container
uses: devcontainers/ci@v0.3
with:
imageName: ghcr.io/azure-samples/chat-with-your-data-solution-accelerator
cacheFrom: ghcr.io/azure-samples/chat-with-your-data-solution-accelerator
push: always
runCmd: make unittest build-frontend
runArgs: --build-arg GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
- name: Report status
uses: github-actions/github-status@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
state: success
description: CI checks passed