Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Limit what GitHub actions need to run for specific directories

Gabe Kangas4127821148e6
diff --git a/.github/workflows/build-next.yml b/.github/workflows/build-next.yml
index 59b901744f..3839613214 100644
--- a/.github/workflows/build-next.yml
+++ b/.github/workflows/build-next.yml
@@ -1,12 +1,16 @@
name: Build web app
-on: [push, pull_request]
+on:
+ push:
+ paths:
+ - web/**
+
jobs:
run:
name: npm run build
runs-on: ubuntu-latest
steps:
- - name: Checkout repo
- uses: actions/checkout@v2
+ - name: Checkout repo
+ uses: actions/checkout@v2
- - name: Install dependencies
- run: cd web && npm install && npm run build
+ - name: Install dependencies
+ run: cd web && npm install && npm run build
diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml
index 4a29eb575b..bdea52c0bb 100644
--- a/.github/workflows/chromatic.yml
+++ b/.github/workflows/chromatic.yml
@@ -3,8 +3,10 @@
# Workflow name
name: 'Chromatic'
-# Event for the workflow
-on: push
+on:
+ push:
+ paths:
+ - web/**
# List of jobs
jobs:
diff --git a/.github/workflows/hls-tests.yml b/.github/workflows/hls-tests.yml
index 1c4384ec4c..65760f822c 100644
--- a/.github/workflows/hls-tests.yml
+++ b/.github/workflows/hls-tests.yml
@@ -3,11 +3,11 @@ name: Automated HLS tests
on:
push:
paths-ignore:
- - 'webroot/**'
+ - 'web/**'
pull_request:
paths-ignore:
- - 'webroot/**'
-
+ - 'web/**'
+
env:
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
@@ -26,5 +26,3 @@ jobs:
go-version: '1.17.2'
- name: Run HLS tests
run: cd test/automated/hls && ./run.sh
-
-
\ No newline at end of file
diff --git a/.github/workflows/javascript-formatting.yml b/.github/workflows/javascript-formatting.yml
index be7da5e0f3..e612abf52c 100644
--- a/.github/workflows/javascript-formatting.yml
+++ b/.github/workflows/javascript-formatting.yml
@@ -5,6 +5,7 @@ on:
push:
paths:
- web/**
+
jobs:
prettier:
runs-on: ubuntu-latest
@@ -23,7 +24,6 @@ jobs:
with:
# This part is also where you can pass other options, for example:
prettier_options: --write **/*.{js,ts,jsx,tsx,css,md}
- working_directory: web
only_changed: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index c0b70767c1..88f02818bb 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -1,6 +1,13 @@
name: Tests
-on: [push, pull_request]
+on:
+ push:
+ paths-ignore:
+ - 'web/**'
+ pull_request:
+ paths-ignore:
+ - 'web/**'
+
jobs:
test:
strategy:
@@ -14,7 +21,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v3
with:
- go-version: "^1"
+ go-version: '^1'
- name: Run tests
run: go test ./...
@@ -35,8 +42,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v3
with:
- go-version: "^1"
+ go-version: '^1'
- name: Run tests
run: go test ./...
-