Skip to content

Setup CI action to automate testing #33

Setup CI action to automate testing

Setup CI action to automate testing #33

name: praction
on: [push, pull_request]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: .
file: scripts/debian_asan.Dockerfile
tags: debian_asan
outputs: type=docker,dest=/tmp/debian_asan.tar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: debian_asan
path: /tmp/debian_asan.tar
thirdparty-tests:
runs-on: ubuntu-latest
needs: docker
strategy:
matrix:
include:
- thirdparty: test_curl
<<<<<<< HEAD

Check failure on line 37 in .github/workflows/linux_thirdparty.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/linux_thirdparty.yml

Invalid workflow file

You have an error in your yaml syntax on line 37
- thirdparty: test_doom
- thirdparty: test_git
- thirdparty: test_libpng
- thirdparty: test_php
- thirdparty: test_postgres
- thirdparty: test_python
- thirdparty: test_sqlite
- thirdparty: test_zlib
- thirdparty: test_zstd
- thirdparty: build_gcc
- thirdparty: build_musl
- thirdparty: build_nano
- thirdparty: build_sdl
=======
- thirdparty: test_git
- thirdparty: test_postgres
- thirdparty: test_sqlite
- thirdparty: build_nano
>>>>>>> 2edaf33 (Initial GHA workflow for Linux thirdparty build tests)
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: debian_asan
path: /tmp
- name: Load image
run: docker load --input /tmp/debian_asan.tar
- name: Run test
run: >
sudo docker run
debian_asan su non-root -c
'bash "$0" "$1"' linux_thirdparty.bash ${{ matrix.thirdparty }}