diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml deleted file mode 100644 index fea8ba6..0000000 --- a/.github/workflows/lint-test.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: 🙏🏻 Lint Test -on: - pull_request: - workflow_dispatch: - -jobs: - lint: - name: Lint Test - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v7 - - name: Set up Go - uses: actions/setup-go@v7 - with: - go-version-file: go.mod - - name: Run golangci-lint - uses: golangci/golangci-lint-action@v9 - with: - version: latest - args: --timeout 5m - working-directory: . diff --git a/.github/workflows/build_test.yaml b/.github/workflows/tests.yml similarity index 54% rename from .github/workflows/build_test.yaml rename to .github/workflows/tests.yml index beb2a1a..f19530e 100644 --- a/.github/workflows/build_test.yaml +++ b/.github/workflows/tests.yml @@ -1,13 +1,32 @@ -name: 🔨 Build Test +name: 🔨 Tests on: pull_request: + paths: + - '**.go' + - '**.mod' + - '.github/workflows/tests.yml' + push: + branches: + - main + paths: + - '**.go' + - '**.mod' + - '.github/workflows/tests.yml' workflow_dispatch: jobs: + lint: + name: Lint Test + uses: projectdiscovery/workflows/.github/workflows/golangci-lint.yaml@v1 + permissions: + contents: read + pull-requests: read + build: name: Test Builds + needs: [lint] runs-on: ${{ matrix.os }} strategy: matrix: diff --git a/README.md b/README.md index 82f0970..1550009 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![License](https://img.shields.io/github/license/projectdiscovery/rawhttp)](LICENSE.md) ![Go version](https://img.shields.io/github/go-mod/go-version/projectdiscovery/rawhttp?filename=go.mod) [![Release](https://img.shields.io/github/release/projectdiscovery/rawhttp)](https://github.com/projectdiscovery/rawhttp/releases/) -[![Checks](https://github.com/projectdiscovery/rawhttp/actions/workflows/build_test.yaml/badge.svg)](https://github.com/projectdiscovery/rawhttp/actions/workflows/build_test.yaml) +[![Checks](https://github.com/projectdiscovery/rawhttp/actions/workflows/tests.yml/badge.svg)](https://github.com/projectdiscovery/rawhttp/actions/workflows/tests.yml) [![GoDoc](https://img.shields.io/badge/go-reference-blue)](https://pkg.go.dev/github.com/projectdiscovery/rawhttp) rawhttp is a Go package for making HTTP requests in a raw way.