Skip to content

Commit

Permalink
chore(ci): regenerate files
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianpaquier committed Mar 4, 2024
1 parent ac757af commit a080191
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 58 deletions.
13 changes: 7 additions & 6 deletions .craft
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
ci:
name: github
options:
- codecov
- dependabot
license: mit
ci: github
maintainers:
- url: kilianpaquier.com
name: kilianpaquier
codecov: true
dependabot: true
no_api: true
- url: kilianpaquier.com
name: kilianpaquier
no_chart: true
61 changes: 11 additions & 50 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,21 @@
# Code generated by craft; DO NOT EDIT.

name: Go Integration
run-name: Go Integration
name: Integration
run-name: Integration

on:
- push
- workflow_dispatch
pull_request:
push:
branches:
- main
- staging
- develop
- v[0-9]+
- v[0-9]+.[0-9]+
workflow_dispatch:

jobs:

version:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version: v${{ steps.semantic_release.outputs.new_release_version }}
release: ${{ steps.release.outputs.release }}
steps:
- uses: actions/checkout@v4
- id: sha
run: echo "sha=$(echo "${{ github.ref_name }}" | sha256sum | cut -c -8)" >> $GITHUB_OUTPUT
- id: semantic_release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/commit-analyzer
@semantic-release/exec
@semantic-release/git
@semantic-release/github
@semantic-release/release-notes-generator
conventional-changelog-conventionalcommits
semantic-release-license
ci: false
dry_run: true
tag_format: v${version}
branches: |
[
"(master|main)",
"v+([0-9])?(.{+([0-9]),x}).x",
{ "name": "next", "prerelease": true },
{ "name": "beta", "prerelease": true },
{ "name": "alpha", "prerelease": true },
{ "name": "staging", "prerelease": "beta" },
{ "name": "develop", "prerelease": "alpha" },
{ "name": "${{ github.ref_name }}", "prerelease": "${{ steps.sha.outputs.sha }}" }
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo v${{ steps.semantic_release.outputs.new_release_version }}
- id: release
run: |
if [[ ${{ steps.semantic_release.outputs.new_release_version }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "release=true" >> $GITHUB_OUTPUT
fi
go-lint:
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ run-name: Release

on:
workflow_dispatch:
inputs:
dry_run:
description: Dry run
type: boolean
default: false

jobs:

Expand Down Expand Up @@ -56,7 +61,6 @@ jobs:
release:
runs-on: ubuntu-latest
environment: release
if: github.ref_protected == true
permissions:
contents: write
Expand Down Expand Up @@ -85,6 +89,7 @@ jobs:
@semantic-release/release-notes-generator
conventional-changelog-conventionalcommits
semantic-release-license
dry_run: ${{ inputs.dry_run }}
tag_format: v${version}
branches: |
[
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ linters-settings:
- name: imports-blacklist
- name: import-shadowing
- name: max-public-structs
arguments: [6]
arguments: [8]
- name: modifies-parameter
- name: modifies-value-receiver
- name: nested-structs
Expand Down
24 changes: 24 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Code generated by craft; DO NOT EDIT.

codecov:
require_ci_to_pass: true
notify:
wait_for_ci: true

comment:
require_changes: true

coverage:
status:
project:
default:
target: 85%
threshold: 10%
if_not_found: failure
informational: false
only_pulls: false
patch:
target: 85%
threshold: 10%
if_not_found: failure
informational: false
only_pulls: false

ignore:
- "cmd"
- "examples"
Expand Down

0 comments on commit a080191

Please sign in to comment.