Skip to content

Commit

Permalink
Merge branch 'MyPureCloud:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
willjeuniaux-genesys authored Nov 19, 2024
2 parents 1d195cf + b5bead1 commit c34b094
Show file tree
Hide file tree
Showing 892 changed files with 44,043 additions and 20,095 deletions.
11 changes: 11 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu

# Install Genesys Cloud CLI
RUN curl -s https://sdk-cdn.mypurecloud.com/external/go-cli/linux/dl/install.sh | sudo bash

# Install the Archy CLI
RUN cd ~ && \
mkdir archy && \
curl https://sdk-cdn.mypurecloud.com/archy/latest/archy-linux.zip > archy-linux.zip && \
unzip archy-linux.zip -d ~/archy && \
cd ~
19 changes: 19 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Terraform and Go",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/terraform:1":{},
"ghcr.io/devcontainers/features/go:1":{},
"ghcr.io/devcontainers/features/python": {}
},
"hostRequirements": {
"cpus": 4,
"memory": "16gb",
"storage": "32gb"
},
"forwardPorts": [
8080
]
}
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

# Assigning Declan, Hemanth, and myself as code owners
* @dginty4 @carnellj-genesys @HemanthDogiparthi12 @charliecon @kavinbalagen
* @dginty4 @carnellj-genesys @HemanthDogiparthi12 @charliecon @kavinbalagen @BrianMoyles @sureshperiyappan
3 changes: 2 additions & 1 deletion .github/pr-labeler-config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
feature: ['feature/*', 'feat/*']
bug: ['fix/*', 'bug/*']
refactor: ['refactor/*']
refactor: ['refactor/*']
hotfix: ['hotfix/*']
39 changes: 0 additions & 39 deletions .github/workflows/generate.yml

This file was deleted.

66 changes: 66 additions & 0 deletions .github/workflows/go-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Go Checks
on:
push:
paths-ignore:
- 'README.md'
jobs:
go-checks:
name: Go Checks
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
id: go

- name: Setup Terraform CLI
uses: hashicorp/[email protected]
with:
terraform_wrapper: false
terraform_version: ${{ matrix.terraform }}

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Get dependencies
run: |
go mod download
- name: Generate
run: |
go generate
if [[ -n $(git status -s) ]]; then
echo "There are untracked documentation changes:\n"
git status
exit 1
fi
- name: Tidy
run: |
go mod tidy
if [[ -n $(git status -s) ]]; then
echo "go mod tidy produced changes:\n"
git status
exit 1
fi
- name: Fmt
run: |
go fmt ./genesyscloud/...
if [[ -n $(git status -s) ]]; then
echo "go fmt produced changes:\n"
git status
echo "Please run 'go fmt ./genesyscloud/...' with go version 1.20 and commit these changes."
exit 1
fi
- name: Vet
run: |
if [[ -n $(go vet ./genesyscloud/... 2>&1) ]]; then
echo "go vet highlighted the following:\n"
go vet ./genesyscloud/...
exit 1
fi
10 changes: 9 additions & 1 deletion .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: PR Labeler
on:
pull_request:
types: [opened]
pull_request_target:
types: [opened]

permissions:
contents: read

jobs:
pr-labeler:
runs-on: ubuntu-latest
permissions:
contents: read # for TimonVS/pr-labeler-action to read config file
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
steps:
- uses: TimonVS/[email protected]
with:
configuration-path: .github/pr-labeler-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119 changes: 0 additions & 119 deletions .github/workflows/test-workflow.yml

This file was deleted.

Loading

0 comments on commit c34b094

Please sign in to comment.