From f891b7daabf33d50913edb11dbbfb82a9216327b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 8 Jan 2024 16:35:56 +0200 Subject: [.github/feature-branch] Added workflow for non-main or dev branches --- .github/workflows/feature-branch.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/feature-branch.yml 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 + -- cgit v1.2.3