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:
14
.github/workflows/test.yaml
vendored
14
.github/workflows/test.yaml
vendored
@@ -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 ./...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user