Skip to content

ci: move lint job to reusable golangci-lint workflow #1

ci: move lint job to reusable golangci-lint workflow

ci: move lint job to reusable golangci-lint workflow #1

Workflow file for this run

name: 🔨 Tests
on:
pull_request:
paths:
- '**.go'
- '**.mod'
- '.github/workflows/tests.yml'
push:
branches:
- dev
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: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: projectdiscovery/actions/setup/go@v1
- name: Test
run: go test ./...
working-directory: cmd/simplehttpserver/
- name: Build
run: go build .
working-directory: cmd/simplehttpserver/