Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
  • Loading branch information
vultj committed Jun 21, 2024
0 parents commit 4d05ba1
Show file tree
Hide file tree
Showing 3,845 changed files with 1,522,307 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: gomod # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
52 changes: 52 additions & 0 deletions .github/workflows/cover.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "Unit/Coverage Tests"

on: pull_request_target

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.21

- name: Run unit tests and coverage test
id: test-coverage
run: |
go test -cover ./... -v > output.txt
- name: Transform output
id: results
if: always()
run: |
CONTENT=$(cat output.txt)
CONTENT="${CONTENT//'%'/'%25'}"
CONTENT="${CONTENT//$'\n'/'%0A'}"
CONTENT="${CONTENT//$'\r'/'%0D'}"
echo content=$CONTENT >> $GITHUB_OUTPUT
- name: Add Comment
uses: actions/github-script@v5
if: always()
with:
script: |
const output = `### Unit Tests and Coverage
<details><summary>Show Output</summary>
\`\`\`
${{ steps.results.outputs.content }}
\`\`\`
</details>
*Pusher: @${{ github.actor }}, Action: \`${{ github.event_name }}\`*`;
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: output
})
26 changes: 26 additions & 0 deletions .github/workflows/go-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Checks

on:
push:
pull_request:

jobs:
Golangci-Lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.22

- name: Install dependencies
run: |
go version
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Run golangci-lint
run: |
golangci-lint run cmd/...
golangci-lint run spec/...
41 changes: 41 additions & 0 deletions .github/workflows/helm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Lint and Test Charts

on: pull_request_target

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.7.2

- uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo changed=true >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
run: ct lint

- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
run: ct install
18 changes: 18 additions & 0 deletions .github/workflows/notify-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: notify-issue

on:
issues:
types: [opened]

jobs:
issue:
runs-on: ubuntu-latest
name: New Issue Notification
steps:
- run: |
echo "{\"text\":\"slik : New Issue https://github.com/vultr/slik/issues/${{ github.event.issue.number }} \"}" > mattermost.json
- uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}}
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}
16 changes: 16 additions & 0 deletions .github/workflows/notify-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: notify-pr

on: pull_request_target

jobs:
pr:
runs-on: ubuntu-latest
name: Pull Request Notification
steps:
- run: |
echo "{\"text\":\"slik : PR https://github.com/vultr/slik/pull/${{ github.event.number }} \"}" > mattermost.json
- uses: mattermost/action-mattermost-notify@master
with:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}}
MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}
Loading

0 comments on commit 4d05ba1

Please sign in to comment.