mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized Dockerfile and github workflow
This commit is contained in:
31
.github/workflows/test-container.yml
vendored
Normal file
31
.github/workflows/test-container.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Build & Test Container
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build -t cymais:latest .
|
||||
|
||||
- name: Clean build artifacts
|
||||
run: |
|
||||
docker run --rm cymais:latest cymais make clean
|
||||
|
||||
- name: Generate project outputs
|
||||
run: |
|
||||
docker run --rm cymais:latest cymais make build
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
docker run --rm cymais:latest cymais make test
|
22
.github/workflows/test-on-arch.yml
vendored
22
.github/workflows/test-on-arch.yml
vendored
@@ -1,22 +0,0 @@
|
||||
name: Build & Test on Arch Linux
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build & Test in Arch Linux Container
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: archlinux:latest
|
||||
options: -v ${{ github.workspace }}:/workspace -w /workspace
|
||||
run: |
|
||||
pacman -Sy --noconfirm base-devel git python python-pip docker make
|
||||
make build
|
||||
make test
|
Reference in New Issue
Block a user