diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..241741d6 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: ci + +on: + pull_request: + branches: + - "*" + +jobs: + test: + uses: signoz/primus.workflows/.github/workflows/go-test.yaml@main + secrets: inherit + with: + PRIMUS_REF: main + GO_TEST_CONTEXT: ./... + fmt: + uses: signoz/primus.workflows/.github/workflows/go-fmt.yaml@main + secrets: inherit + with: + PRIMUS_REF: main + lint: + uses: signoz/primus.workflows/.github/workflows/go-lint.yaml@main + secrets: inherit + with: + PRIMUS_REF: main \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml deleted file mode 100644 index ca71f3df..00000000 --- a/.github/workflows/codeql-analysis.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: "CodeQL Analysis" - -on: - push: - branches: - - main - pull_request: - branches: - - main - schedule: - - cron: "0 22 * * 6" - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.21 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: go - - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - - name: Install cross-compilation tools - run: | - set -ex - sudo apt-get update - sudo apt-get install -y gcc-aarch64-linux-gnu musl-tools - - - name: Build Artifacts - run: make build-all - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/lint-and-test.yaml b/.github/workflows/lint-and-test.yaml deleted file mode 100644 index 0d3bcd89..00000000 --- a/.github/workflows/lint-and-test.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: test-pipeline - -on: - pull_request: - branches: - - "**" - -jobs: - lint-and-test: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.21 - - - name: Install tools - run: make install-ci - - - name: Run unit tests and lint - run: make test-and-lint