Skip to content

Feature/test cd

Feature/test cd #17

Workflow file for this run

name: CI
on:
# Manually triggered testing
workflow_dispatch:
# Check every PR to main
pull_request:
branches:
- "main"
env:
TEST_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/${{ vars.DOCKERHUB_REPO }}:test-22.04-v0.32.0-d76db35
LATEST_TAG: ${{ secrets.DOCKERHUB_USERNAME }}/${{ vars.DOCKERHUB_REPO }}:latest
jobs:
docker-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build locally
uses: docker/[email protected]
with:
context: .
file: Dockerfile.ubuntu
platforms: linux/amd64
push: false
load: true
tags: ${{ env.TEST_TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run all Tests using Docker
run: |
docker run \
--interactive \
--rm \
--volume ./project-demo:/project \
${{ env.TEST_TAG }} \
ceedling test:all