Skip to content

Commit

Permalink
fix: fixed extensions path
Browse files Browse the repository at this point in the history
Signed-off-by: Rubicon Lee <132176609+raff-wakflo@users.noreply.github.com>
  • Loading branch information
raff-wakflo committed Jun 1, 2024
0 parents commit f6f206a
Show file tree
Hide file tree
Showing 81 changed files with 7,428 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
coverage:
# See https://docs.codecov.io/docs/commit-status
status:
project:
default: false
client:
paths: "connector/"
threshold: 2% # don't allow coverage to drop on client
service:
paths: "core"
threshold: 2% # allow coverage to drop on service by 2% (wip)
ignore:
- "example/**"
69 changes: 69 additions & 0 deletions .github/workflows/release-on-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Release

permissions:
id-token: write # Enable OIDC
pull-requests: write
contents: write
packages: write
issues: write

on:
push:
tags:
- "v*" # v0.8.1

jobs:
build:
name: Create Release on Tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: Check sdk-version file
run: |
SDK_VERSION="$(head -n1 version/sdk-version)"
SDK_VERSION_GIT="refs/tags/${SDK_VERSION}"
if [[ "${SDK_VERSION_GIT}" != "${{ github.ref }}" ]]; then
echo "File version/sdk-version (${SDK_VERSION}) needs to be updated to ${{ github.ref }}"
exit 1
fi
shell: bash

- name: Tidy
run: make tidy

- name: Test
run: make test

- name: Version
run: |
echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
# - name: Release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# token: ${{secrets.GITHUB_TOKEN}}
# config-file: release-please-config.json
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# body: Automatic Go Wakflo SDK release
# draft: false
# prerelease: false

# - name: Notify
# uses: rjstone/discord-webhook-notify@v1
# with:
# severity: info
# details: Release ${{ github.ref }} published
# description: Release
# webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
# avatarUrl: https://github.githubassets.com/images/modules/logos_page/Octocat.png
88 changes: 88 additions & 0 deletions .github/workflows/test-on-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Test

permissions:
id-token: write # Enable OIDC
pull-requests: write
contents: write
packages: write
issues: write

on:
push:
pull_request:
branches:
- main

jobs:
build:
name: Test on ${{ matrix.gover }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
gover:
- "1.21"
- "1.22"
env:
GOVER: ${{ matrix.gover }}
GOLANGCILINT_VER: v1.55.2

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVER }}

- name: Tidy
run: make tidy

- name: Test
run: make test

# - name: Cover
# uses: codecov/codecov-action@v4

- name: Lint
uses: golangci/golangci-lint-action@v3.3.1
with:
version: ${{ env.GOLANGCILINT_VER }}
skip-cache: true
args: --timeout=10m0s

- name: Run go mod tidy check diff
run: make modtidy check-diff
- name: Run go mod tidy
run: make modtidy

prerelease:
runs-on: ubuntu-latest
needs:
- build
if: github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v4

- name: Run Release
uses: googleapis/release-please-action@v4
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
token: ${{ secrets.GIT_RELEASE_TOKEN }} # <-- PAT secret name
# - name: tag major and minor versions
# if: ${{ steps.release.outputs.release_created }}
# run: |
# git config user.name github-actions[bot]
# git config user.email 41898282+github-actions[bot]@users.noreply.github.com
# git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
# git tag -d v${{ steps.release.outputs.major }} || true
# git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
# git push origin :v${{ steps.release.outputs.major }} || true
# git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
# git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
# git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
# git push origin v${{ steps.release.outputs.major }}
# git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
54 changes: 54 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Reference https://github.com/github/gitignore/blob/master/Go.gitignore
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.dylib

# Test binary, built with `go test -ah`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
vendor/

# Go workspace file
go.work

# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# OS General
Thumbs.db
.DS_Store

# space
*.cert
*.key
*.log
bin/

# Develop tools
.vscode/
../../.idea/
*.swp

.env

tmp/


# IDE
.vscode
.idea

# vendor
vendor

# docs
golang.org
coverage.txt
Loading

0 comments on commit f6f206a

Please sign in to comment.