.github/workflows/test.yaml: test github.events key

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
This commit is contained in:
Ian Johnson
2021-08-23 07:15:13 -05:00
parent ac20155576
commit 11e66d15f4

View File

@@ -3,11 +3,14 @@ on:
pull_request:
branches: [ "master", "release/**" ]
push:
branches: [ "release/**" ]
# we trigger runs on master branch, but we do not run spread on master
# branch, the master branch runs are just for unit tests + codecov.io
branches: [ "master","release/**" ]
jobs:
snap-builds:
runs-on: ubuntu-20.04
if: ${{ github.event_name != 'push' && github.ref != 'refs/heads/master' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
@@ -227,6 +230,7 @@ jobs:
spread:
needs: [unit-tests]
if: ${{ github.event_name != 'push' && github.ref != 'refs/heads/master' }}
runs-on: self-hosted
strategy:
# FIXME: enable fail-fast mode once spread can cancel an executing job.
@@ -301,6 +305,7 @@ jobs:
spread-nested:
needs: [unit-tests]
if: ${{ github.event_name != 'push' && github.ref != 'refs/heads/master' }}
runs-on: self-hosted
strategy:
# FIXME: enable fail-fast mode once spread can cancel an executing job.