Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
d860f40
add gh action workflow to mirror circle ci
kevinkruger Dec 4, 2024
11034ba
add newline
kevinkruger Dec 4, 2024
abff4d5
simplify the workflow
kevinkruger Dec 4, 2024
a840939
make sure test run sequentially
kevinkruger Dec 4, 2024
9a6f01f
log file path
kevinkruger Dec 4, 2024
bb5d29e
log write path
kevinkruger Dec 4, 2024
ca370e6
remove error
kevinkruger Dec 5, 2024
7a975dd
remove uneeded variable
kevinkruger Dec 5, 2024
d2a0731
add install dependencies step
kevinkruger Dec 5, 2024
c41fcd9
remove pre commit hook
kevinkruger Dec 5, 2024
479a579
only run lint via pre commit
kevinkruger Dec 5, 2024
795bba7
add go test sum
kevinkruger Dec 5, 2024
ba05af2
add github actions docs step
kevinkruger Dec 5, 2024
99cf78c
only run pre commit
kevinkruger Dec 5, 2024
2fa72a0
remove circle ci
kevinkruger Dec 5, 2024
f7d1503
remove print ln
kevinkruger Dec 6, 2024
8584bca
add step to publish the results of the test suite
kevinkruger Dec 16, 2024
a6d0041
fix gh actions folder path
kevinkruger Dec 16, 2024
49ea11e
install datadog ci
kevinkruger Dec 16, 2024
5e7e14d
use golang lint gh actoin
kevinkruger Dec 16, 2024
f6619ba
use pre commit action
kevinkruger Dec 16, 2024
b79b7b5
update to newest version of golangci-lint
kevinkruger Dec 16, 2024
e353892
fix version
kevinkruger Dec 16, 2024
3b58eda
make linter happy
kevinkruger Dec 16, 2024
e68f87d
more linting
kevinkruger Dec 16, 2024
1035cae
more linting
kevinkruger Dec 16, 2024
511460a
no lint lint issues
kevinkruger Dec 16, 2024
2eba4b5
lint exceptions
kevinkruger Dec 16, 2024
c8694a6
no lint
kevinkruger Dec 16, 2024
2dcaa8f
formating
kevinkruger Dec 16, 2024
0672bbe
more linting
kevinkruger Dec 16, 2024
17c632f
unused param removal / bug
kevinkruger Dec 16, 2024
902c901
do not close request bc test needs it
kevinkruger Dec 16, 2024
16653b7
revert linter changes
kevinkruger Jan 7, 2025
d64c345
change value to two
kevinkruger Jan 7, 2025
8901875
add no lint
kevinkruger Jan 7, 2025
284a233
remove duplicate step
kevinkruger Jan 7, 2025
e169cde
linting
kevinkruger Jan 7, 2025
241b9fb
Merge branch 'main' into IDE-657-s-migrate-workflow-launchdarkly-ld-f…
kevinkruger Jan 7, 2025
f96eae0
add new line
kevinkruger Jan 7, 2025
84a64ce
remove new line
kevinkruger Jan 7, 2025
25b3f90
add back in code that was removed
kevinkruger Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 0 additions & 102 deletions .circleci/config.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/actions/publish-junit/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish JUnit Tests
description: Publishes JUnit tests to one or more sources
inputs:
files:
required: true
description: The JUnit files to upload
name:
required: true
description: The name of the suite
datadog:
required: false
description: Upload to Datadog
default: 'true'
github:
required: false
description: Upload to GitHub
default: 'true'

runs:
using: composite
steps:
- name: Report Tests to Datadog
shell: bash
if: ${{ inputs.datadog }} == 'true'
run: datadog-ci junit upload --service ${{ inputs.name }} ${{ inputs.files }}

- name: Test Publish
uses: phoenix-actions/test-reporting@f957cd93fc2d848d556fa0d03c57bc79127b6b5e # v15
if: ${{ inputs.github }} == 'true'
with:
name: ${{ inputs.name }}
output-to: step-summary
path: ${{ inputs.files }}
reporter: java-junit
fail-on-error: 'false'
75 changes: 75 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Test and Generate Docs

on: pull_request

jobs:
go-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
with:
go-version-file: go.mod

- name: Install datadog-ci
run: npm install -g @datadog/datadog-ci

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y git python3-pip
go install github.com/jstemmer/go-junit-report@v1.0.0
go install github.com/kyoh86/richgo@v0.3.10
go install gotest.tools/gotestsum@latest
pip install pre-commit

- name: Run pre-commit hooks
run: pre-commit run -a golangci-lint

- name: Run tests with gotestsum
run: |
mkdir -p ${{ github.workspace }}/artifacts
mkdir -p ${{ github.workspace }}/reports
gotestsum --packages="./..." \
--junitfile ${{ github.workspace }}/reports/go-test_go_tests.xml \
--jsonfile ${{ github.workspace }}/artifacts/go-test_go_tests.json \
--rerun-fails=2 \
--rerun-fails-max-failures=10 \
--rerun-fails-report ${{ github.workspace }}/artifacts/rerun_tests_go_tests.txt

- name: Publish JUnit Tests
uses: ./.github/actions/publish-junit
env:
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
with:
files: ${{ github.workspace }}/reports/go-test_go_tests.xml
name: find-code-references-in-pull-request
datadog: 'true'
github: 'true'

github-actions-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Install npm
run: sudo apt-get install -y npm

- name: Install action-docs
run: npm install action-docs

- name: Install Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
with:
python-version: '3.x'

- name: Install pre-commit
run: pip install pre-commit

- name: Run pre-commit hooks
run: pre-commit run -a github-action-docs
Loading