DEV: writeHeader , serve continuation, body reading functionality #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: myHttpServer | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
strategy: | |
matrix: | |
go-version: [ '1.22.x' ] | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: false | |
- name: go internal linting mechanism | |
run: make vet | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: v1.57.1 | |
# args: --timeout=30m --config=${{ github.workspace }}/.golangci.yml --issues-exit-code=0 | |
skip-cache: true | |
test: | |
needs: [build] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.22.x' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: false | |
- name: Install dependencies | |
run: make install | |
- name: Run tests | |
run: make test | |
build: | |
needs: [lint] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.22.x' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: false | |
- name: Install dependencies | |
run: make install | |
- name: Compile the binary | |
run: make build_ci |