Limit what GitHub actions need to run for specific directories

This commit is contained in:
Gabe Kangas
2022-06-29 14:34:37 -07:00
parent e7d078fbdb
commit 43aba0a67c
5 changed files with 27 additions and 17 deletions

View File

@@ -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 ./...