diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml deleted file mode 100644 index a9d2db0..0000000 --- a/.github/workflows/setup.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Setting up your repository - -on: - # run when branch created (repo generated from template) - create: - -permissions: - contents: write - -# only keep the latest run of this workflow -concurrency: - group: first-time-setup - cancel-in-progress: true - -jobs: - first-time-setup: - # ensure run only once, when repo generated - if: github.run_number == 1 - - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set git 'user.name' and 'user.email' - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - - - name: Remove unneeded files - run: rm -f LICENSE CODE_OF_CONDUCT.md SECURITY.md .github/CODEOWNERS CONTRIBUTING.md - - - name: Update URLs - run: | - sed -i "s/kubeshop/${{ github.repository_owner }}/g" README.md - sed -i "s/botkube-plugins-template/${{ github.event.repository.name }}/g" README.md - - - name: Commit changes - run: | - git add -A - git commit -m "Setup newly created repository" - git push diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml deleted file mode 100644 index 20acb4a..0000000 --- a/.github/workflows/testing.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Testing -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] -env: - GOLANGCI_LINT_TIMEOUT: 5m -jobs: - cancel-previous-workflows: - name: Cancel previous workflows - runs-on: ubuntu-latest - if: github.event.pull_request.draft == false - # https://github.com/styfle/cancel-workflow-action#advanced-token-permissions - permissions: - actions: write - - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 - with: - access_token: ${{ github.token }} - - code-quality-test: - runs-on: ubuntu-latest - - steps: - - name: "Checkout code" - uses: actions/checkout@v3 - - name: "Set up Go" - uses: actions/setup-go@v3 - with: - go-version-file: 'go.mod' - cache: true - - name: "Check code quality" - uses: golangci/golangci-lint-action@v3 - with: - args: --timeout=${{ env.GOLANGCI_LINT_TIMEOUT }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2d0a374..0c9d095 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,9 +3,9 @@ before: - go mod download builds: - - id: echo - main: cmd/echo/main.go - binary: executor_echo_{{ .Os }}_{{ .Arch }} + - id: msg + main: cmd/msg/main.go + binary: executor_msg_{{ .Os }}_{{ .Arch }} no_unique_dist_dir: true env: &env @@ -19,36 +19,6 @@ builds: goarm: &goarm - 7 - - id: msg - main: cmd/msg/main.go - binary: executor_msg_{{ .Os }}_{{ .Arch }} - - no_unique_dist_dir: true - env: *env - goos: *goos - goarch: *goarch - goarm: *goarm - - - id: ticker - main: cmd/ticker/main.go - binary: source_ticker_{{ .Os }}_{{ .Arch }} - - no_unique_dist_dir: true - env: *env - goos: *goos - goarch: *goarch - goarm: *goarm - - - id: forwarder - main: cmd/forwarder/main.go - binary: source_forwarder_{{ .Os }}_{{ .Arch }} - - no_unique_dist_dir: true - env: *env - goos: *goos - goarch: *goarch - goarm: *goarm - snapshot: name_template: 'v{{ .Version }}'