feat(ci): add PR checks workflow

This commit is contained in:
2026-06-12 15:32:15 -04:00
parent 56185bffdb
commit 537d0c1dc9
+31
View File
@@ -0,0 +1,31 @@
name: PR Checks
on:
pull_request:
jobs:
pr-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4143172cec0e10 # v6
- name: Build image
run: docker build -t ci-image:${{ github.sha }} .
- name: Save image
run: docker save ci-image:${{ github.sha }} -o image.tar
- uses: ChristopherHX/gitea-upload-artifact@62ac910c5d3dfa85c7cb2df15afe2e342b2407c2 # main
with:
name: docker-image
path: image.tar
test:
runs-on: ubuntu-latest
needs: pr-checks
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4143172cec0e10 # v6
- uses: ChristopherHX/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # main
with:
name: docker-image
- name: Load image
run: docker load < image.tar
- name: Run tests
run: bash tests/test.sh ci-image:${{ github.sha }}