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
|
||||
run-name: ${{ gitea.repository }} PHP unit tests
|
||||
on: [push]
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
run-unit-tests:
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -13,3 +13,6 @@ storage/upload/css
|
||||
# Testing stuff
|
||||
/docker-compose.yml
|
||||
scratch
|
||||
|
||||
# Build artifacts
|
||||
tkr.tgz
|
Loading…
x
Reference in New Issue
Block a user