mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 22:31:09 +03:00
Fix go test workflow
This commit is contained in:
parent
05c54eaad8
commit
bf07c977d7
1 changed files with 10 additions and 1 deletions
11
.github/workflows/go-tests.yaml
vendored
11
.github/workflows/go-tests.yaml
vendored
|
@ -49,7 +49,6 @@ jobs:
|
||||||
|
|
||||||
test-bsds:
|
test-bsds:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
|
@ -61,6 +60,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Get changed files
|
||||||
|
id: changed-files-yaml
|
||||||
|
uses: tj-actions/changed-files@v44
|
||||||
|
with:
|
||||||
|
files_yaml: |
|
||||||
|
src:
|
||||||
|
- '**/*.{go,mod,sum}'
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
@ -71,10 +78,12 @@ jobs:
|
||||||
go-test-
|
go-test-
|
||||||
|
|
||||||
- name: Install go
|
- name: Install go
|
||||||
|
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: '^1'
|
go-version: '^1'
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
if: steps.changed-files-yaml.outputs.src_any_changed == 'true'
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|
Loading…
Reference in a new issue