build: push base image to DockerHub #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI - Docker Build and Tests - New | |
on: | |
push: | |
branches: ["open-source"] | |
pull_request: | |
branches: ["open-source"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
docker-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start dev container | |
run: cd docker && ./docker.sh dev_create && ./docker.sh dev_up | |
- name: Run tests in dev container | |
run: cd docker && ./docker.sh dev_exec ls -al && ./docker.sh dev_exec bash lightning-filter/tests.sh | |
- name: Upload artifacts | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tests-artifacts | |
path: tmp/tests_artifacts | |
- name: Clear artifacts | |
run: rm -rf tmp/tests_artifacts | |
- name: Stop dev container | |
run: cd docker && ./docker.sh dev_down | |
dev-container: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v4 | |
- name: Build and run dev container task | |
uses: devcontainers/ci@v0.3 | |
with: | |
runCmd: ./tests.sh |