mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Limit what GitHub actions need to run for specific directories
This commit is contained in:
parent
e7d078fbdb
commit
43aba0a67c
14
.github/workflows/build-next.yml
vendored
14
.github/workflows/build-next.yml
vendored
@ -1,12 +1,16 @@
|
|||||||
name: Build web app
|
name: Build web app
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- web/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
name: npm run build
|
name: npm run build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd web && npm install && npm run build
|
run: cd web && npm install && npm run build
|
||||||
|
|||||||
6
.github/workflows/chromatic.yml
vendored
6
.github/workflows/chromatic.yml
vendored
@ -3,8 +3,10 @@
|
|||||||
# Workflow name
|
# Workflow name
|
||||||
name: 'Chromatic'
|
name: 'Chromatic'
|
||||||
|
|
||||||
# Event for the workflow
|
on:
|
||||||
on: push
|
push:
|
||||||
|
paths:
|
||||||
|
- web/**
|
||||||
|
|
||||||
# List of jobs
|
# List of jobs
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
8
.github/workflows/hls-tests.yml
vendored
8
.github/workflows/hls-tests.yml
vendored
@ -3,11 +3,11 @@ name: Automated HLS tests
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'webroot/**'
|
- 'web/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'webroot/**'
|
- 'web/**'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
S3_BUCKET: ${{ secrets.S3_BUCKET }}
|
S3_BUCKET: ${{ secrets.S3_BUCKET }}
|
||||||
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
|
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
|
||||||
@ -26,5 +26,3 @@ jobs:
|
|||||||
go-version: '1.17.2'
|
go-version: '1.17.2'
|
||||||
- name: Run HLS tests
|
- name: Run HLS tests
|
||||||
run: cd test/automated/hls && ./run.sh
|
run: cd test/automated/hls && ./run.sh
|
||||||
|
|
||||||
|
|
||||||
2
.github/workflows/javascript-formatting.yml
vendored
2
.github/workflows/javascript-formatting.yml
vendored
@ -5,6 +5,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- web/**
|
- web/**
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prettier:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -23,7 +24,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# This part is also where you can pass other options, for example:
|
# This part is also where you can pass other options, for example:
|
||||||
prettier_options: --write **/*.{js,ts,jsx,tsx,css,md}
|
prettier_options: --write **/*.{js,ts,jsx,tsx,css,md}
|
||||||
working_directory: web
|
|
||||||
only_changed: true
|
only_changed: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
14
.github/workflows/test.yaml
vendored
14
.github/workflows/test.yaml
vendored
@ -1,6 +1,13 @@
|
|||||||
name: Tests
|
name: Tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- 'web/**'
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- 'web/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
@ -14,7 +21,7 @@ jobs:
|
|||||||
- name: Install go
|
- name: Install go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: "^1"
|
go-version: '^1'
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
@ -35,8 +42,7 @@ jobs:
|
|||||||
- name: Install go
|
- name: Install go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: "^1"
|
go-version: '^1'
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user