aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/feature-branch.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/feature-branch.yml b/.github/workflows/feature-branch.yml
new file mode 100644
index 0000000..54c0c6b
--- /dev/null
+++ b/.github/workflows/feature-branch.yml
@@ -0,0 +1,36 @@
+name: feature-branch
+on:
+ push:
+ branches-ignore:
+ - main
+ - dev
+jobs:
+ # This is done to prevent potential race conditions;
+ # multiple jobs start with the source code, but since
+ # they have no "needs", one could start a little bit later,
+ # and in meantime a commit could be pushed
+ Clone-repo:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/upload-artifact@v3
+ with:
+ name: source-code
+ path: .
+
+ Tests:
+ runs-on: ubuntu-latest
+ needs: Clone-repo
+ steps:
+ - uses: actions/checkout@v4
+ - name: Build server and browser
+ run: make tests
+
+ Static analysis:
+ runs-on: ubuntu-latest
+ needs: Clone-repo
+ steps:
+ - uses: actions/checkout@v4
+ - name: Build server and browser
+ run: make static-analysis
+