diff options
| author | Syndamia <kamen@syndamia.com> | 2024-01-08 16:35:56 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2024-01-08 16:35:56 +0200 |
| commit | f891b7daabf33d50913edb11dbbfb82a9216327b (patch) | |
| tree | 32bd4e6dcfa0013be05f6bb4aada19729e542294 /.github/workflows | |
| parent | b2ce36e87d3acc8bb6db74063035787754113b83 (diff) | |
| download | pico-web-f891b7daabf33d50913edb11dbbfb82a9216327b.tar pico-web-f891b7daabf33d50913edb11dbbfb82a9216327b.tar.gz pico-web-f891b7daabf33d50913edb11dbbfb82a9216327b.zip | |
[.github/feature-branch] Added workflow for non-main or dev branches
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/feature-branch.yml | 36 |
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 + |
