feat: linting
This commit is contained in:
parent
e0072ca3f8
commit
16a5f874b3
2 changed files with 42 additions and 6 deletions
10
.github/workflows/example.yml
vendored
10
.github/workflows/example.yml
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
name: Sample Testing
|
name: Sample Testing
|
||||||
on: [push]
|
on: [workflow_dispatch]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
VER: 0.1.2
|
VER: 0.1.2
|
||||||
|
|
@ -22,10 +22,10 @@ jobs:
|
||||||
webhook: "${{ secrets.WEBHOOK_URL }}"
|
webhook: "${{ secrets.WEBHOOK_URL }}"
|
||||||
# event_body: "" # optional
|
# event_body: "" # optional
|
||||||
|
|
||||||
- name: Force failure
|
# - name: Force failure
|
||||||
run: |
|
# run: |
|
||||||
echo "This is a force failure"
|
# echo "This is a force failure"
|
||||||
exit 1
|
# exit 1
|
||||||
|
|
||||||
- name: Second Chat Message as ThreadResponse
|
- name: Second Chat Message as ThreadResponse
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
|
|
||||||
38
.github/workflows/release.yml
vendored
38
.github/workflows/release.yml
vendored
|
|
@ -7,6 +7,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
VER: 0.1.2
|
||||||
|
|
||||||
# If a 403 error occurs, make sure to set content permission to write
|
# If a 403 error occurs, make sure to set content permission to write
|
||||||
# see: https://github.com/go-semantic-release/action/issues/27
|
# see: https://github.com/go-semantic-release/action/issues/27
|
||||||
permissions:
|
permissions:
|
||||||
|
|
@ -25,7 +28,9 @@ jobs:
|
||||||
go-version: 1.26
|
go-version: 1.26
|
||||||
|
|
||||||
- name: GO Linting
|
- name: GO Linting
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v9
|
||||||
|
with:
|
||||||
|
version: v2.11
|
||||||
|
|
||||||
# build:
|
# build:
|
||||||
# runs-on: stackit-docker
|
# runs-on: stackit-docker
|
||||||
|
|
@ -47,6 +52,17 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
tag: ${{ steps.create_release.outputs.tag }}
|
tag: ${{ steps.create_release.outputs.tag }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: "[START] release workflow"
|
||||||
|
if: ${{ always() }}
|
||||||
|
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${{ env.VER }}
|
||||||
|
with:
|
||||||
|
title: "[START] release workflow (${{ forgejo.run_number }})"
|
||||||
|
author: ${{ forgejo.actor }}
|
||||||
|
giturl: ${{ forgejo.server_url }}
|
||||||
|
iconslug: instacart
|
||||||
|
actionid: ${{ forgejo.run_number }}
|
||||||
|
webhook: "${{ secrets.WEBHOOK_URL }}"
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
|
@ -95,8 +111,28 @@ jobs:
|
||||||
if: steps.create_release.outputs.tag != ''
|
if: steps.create_release.outputs.tag != ''
|
||||||
uses: docker/setup-buildx-action@v4
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
|
- name: Build only
|
||||||
|
if: steps.create_release.outputs.tag == ''
|
||||||
|
uses: docker/build-push-action@v7
|
||||||
|
with:
|
||||||
|
push: false
|
||||||
|
tags: actions/notify-slim:dev
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
|
if: steps.create_release.outputs.tag != ''
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
tags: actions/notify-slim:${{ steps.create_release.outputs.tag }}
|
tags: actions/notify-slim:${{ steps.create_release.outputs.tag }}
|
||||||
|
|
||||||
|
- name: "[END] release workflow"
|
||||||
|
if: ${{ always() }}
|
||||||
|
uses: https://stackit-solutions.git.onstackit.cloud/actions/notify@v${{ env.VER }}
|
||||||
|
with:
|
||||||
|
title: "[START] release workflow (${{ forgejo.run_number }})"
|
||||||
|
author: ${{ forgejo.actor }}
|
||||||
|
giturl: ${{ forgejo.server_url }}
|
||||||
|
iconslug: instacart
|
||||||
|
actionid: ${{ forgejo.run_number }}
|
||||||
|
webhook: "${{ secrets.WEBHOOK_URL }}"
|
||||||
|
status: 'completed'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue