Prepare for GitHub migration
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci / actions (pull_request) Has been cancelled
ci / ci (pull_request) Has been cancelled
ci / image (pull_request) Has been cancelled
ci / go (pull_request) Has been cancelled
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci / actions (pull_request) Has been cancelled
ci / ci (pull_request) Has been cancelled
ci / image (pull_request) Has been cancelled
ci / go (pull_request) Has been cancelled
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
uses: IUCLabs/workflows/.github/workflows/pre-commit.yml@v0.1.1
|
||||
permissions:
|
||||
contents: read
|
||||
with:
|
||||
go_version_file: go.mod
|
||||
|
||||
actions:
|
||||
uses: IUCLabs/workflows/.github/workflows/actions.yml@v0.1.1
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
go:
|
||||
uses: IUCLabs/workflows/.github/workflows/go-ci.yml@v0.1.1
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: read
|
||||
with:
|
||||
# e2e tests sit behind the e2e build tag and need Docker, so they stay out
|
||||
test_args: -race -count=1 ./...
|
||||
|
||||
image:
|
||||
uses: IUCLabs/workflows/.github/workflows/release-go-image.yml@v0.1.1
|
||||
# the called job declares packages: write for the push; push: false uses none of it
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
with:
|
||||
main: .
|
||||
push: false
|
||||
runs_on: ubuntu-latest
|
||||
@@ -0,0 +1,16 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ["v[0-9]*"]
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
uses: IUCLabs/workflows/.github/workflows/release-go-image.yml@v0.1.1
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
with:
|
||||
main: .
|
||||
Reference in New Issue
Block a user