Improve conditional GitHub actions

This commit is contained in:
Nindi Gill 2022-12-10 11:49:02 +11:00
parent 9ef77ff885
commit 8b81b1c0b6
4 changed files with 23 additions and 5 deletions

View file

@ -1,5 +1,11 @@
name: Build
on: [push, pull_request]
on:
push:
paths:
- "**.swift"
pull_request:
branches:
- main
jobs:
build:
name: Build

View file

@ -1,5 +1,11 @@
name: Linting
on: [push, pull_request]
on:
push:
paths:
- "**.swift"
pull_request:
branches:
- main
jobs:
linting:
name: Linting

View file

@ -1,5 +1,11 @@
name: Unit Tests
on: [push, pull_request]
on:
push:
paths:
- "**.swift"
pull_request:
branches:
- main
jobs:
unit_tests:
name: Unit Tests