Run tests on PR, add initial build action
This commit is contained in:
parent
45dd85ca8e
commit
29416efdb0
20
.gitea/workflows/build_and_publish.yaml
Normal file
20
.gitea/workflows/build_and_publish.yaml
Normal 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
|
@ -1,6 +1,6 @@
|
|||||||
name: Run unit tests
|
name: Run unit tests
|
||||||
run-name: ${{ gitea.repository }} PHP unit tests
|
run-name: ${{ gitea.repository }} PHP unit tests
|
||||||
on: [push]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-unit-tests:
|
run-unit-tests:
|
||||||
|
5
.gitignore
vendored
5
.gitignore
vendored
@ -12,4 +12,7 @@ storage/upload/css
|
|||||||
|
|
||||||
# Testing stuff
|
# Testing stuff
|
||||||
/docker-compose.yml
|
/docker-compose.yml
|
||||||
scratch
|
scratch
|
||||||
|
|
||||||
|
# Build artifacts
|
||||||
|
tkr.tgz
|
Loading…
x
Reference in New Issue
Block a user