mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
chore: update workflows
This commit is contained in:
parent
d46ba48b4b
commit
9af5f53ce7
14
.github/workflows/pr.yml
vendored
14
.github/workflows/pr.yml
vendored
@ -7,6 +7,10 @@ on:
|
|||||||
merge_group:
|
merge_group:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -17,9 +21,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
|
|
||||||
|
- uses: gotesttools/gotestfmt-action@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: golangci/golangci-lint-action@v4
|
- uses: golangci/golangci-lint-action@v4
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v ./...
|
run: make test
|
||||||
|
|
||||||
|
- uses: coverallsapp/github-action@v2
|
||||||
|
with:
|
||||||
|
file: coverage.out
|
||||||
|
|||||||
9
.github/workflows/tag.yml
vendored
9
.github/workflows/tag.yml
vendored
@ -6,19 +6,22 @@ on:
|
|||||||
- v*.*.*
|
- v*.*.*
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Unshallow
|
||||||
|
run: git fetch --prune --unshallow
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
- name: Unshallow
|
|
||||||
run: git fetch --prune --unshallow
|
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
|
skip-dirs:
|
||||||
|
- tmp
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
gocritic:
|
gocritic:
|
||||||
|
|||||||
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
[](https://github.com/foomo/contentserver/actions/workflows/test.yml)
|
[](https://github.com/foomo/contentserver/actions/workflows/test.yml)
|
||||||
[](https://goreportcard.com/report/github.com/foomo/contentserver)
|
[](https://goreportcard.com/report/github.com/foomo/contentserver)
|
||||||
[](https://godoc.org/github.com/foomo/contentserver)
|
[](https://coveralls.io/github/foomo/contentserver?branch=main)
|
||||||
[](https://github.com/foomo/contentserver/actions)
|
[](https://godoc.org/github.com/foomo/contentserver)
|
||||||
|
|
||||||
Serves content tree structures very quickly.
|
Serves content tree structures very quickly.
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user