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:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
@ -17,9 +21,17 @@ jobs:
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
|
||||
- uses: gotesttools/gotestfmt-action@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: golangci/golangci-lint-action@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- 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*.*.*
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
|
||||
- uses: docker/setup-qemu-action@v3
|
||||
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
run:
|
||||
timeout: 5m
|
||||
skip-dirs:
|
||||
- tmp
|
||||
|
||||
linters-settings:
|
||||
gocritic:
|
||||
|
||||
@ -2,8 +2,8 @@
|
||||
|
||||
[](https://github.com/foomo/contentserver/actions/workflows/test.yml)
|
||||
[](https://goreportcard.com/report/github.com/foomo/contentserver)
|
||||
[](https://godoc.org/github.com/foomo/contentserver)
|
||||
[](https://github.com/foomo/contentserver/actions)
|
||||
[](https://coveralls.io/github/foomo/contentserver?branch=main)
|
||||
[](https://godoc.org/github.com/foomo/contentserver)
|
||||
|
||||
Serves content tree structures very quickly.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user