mirror of
https://github.com/logos-storage/logos-storage-local-harness.git
synced 2026-01-03 22:13:09 +00:00
36 lines
719 B
YAML
36 lines
719 B
YAML
name: Lint and Test the Codex Local Harness
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- 'v*.*.*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Build and Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build Test Image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: Dockerfile
|
|
push: false
|
|
load: true
|
|
tags: clh:test
|
|
|
|
- name: Lint
|
|
run: docker run -v --rm clh:test bash -c 'shellcheck -x ./src/* ./test/*.bats'
|
|
|
|
- name: Run Tests
|
|
run: docker run -v --rm clh:test ./test/bats/bin/bats test/
|