Run tests on PR, add initial build action

This commit is contained in:
Greg Sarjeant 2025-07-02 08:22:38 -04:00
parent 45dd85ca8e
commit 29416efdb0
3 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,20 @@
name: Run unit tests
run-name: ${{ gitea.repository }} PHP unit tests
on:
push:
tags:
- v*.**
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build archive
run: |
tar \
--exclude='./storage/db' \
--exclude='./storage/ticks' \
--exclude='./storage/upload' \
-czpvf tkr.${{ gitea.ref_name }}.tgz \
config public src storage templates

View File

@ -1,6 +1,6 @@
name: Run unit tests
run-name: ${{ gitea.repository }} PHP unit tests
on: [push]
on: [push, pull_request]
jobs:
run-unit-tests:

5
.gitignore vendored
View File

@ -12,4 +12,7 @@ storage/upload/css
# Testing stuff
/docker-compose.yml
scratch
scratch
# Build artifacts
tkr.tgz