Skip to content

docs: updated docs

docs: updated docs #25

Workflow file for this run

name: Pull Request
on:
push:
branches-ignore: [main]
env:
GO_VERSION: "1.22"
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
id: go
- name: "Get dependencies"
id: dependencies
run: |
go get
- name: Go Tests
run: |
mkdir -p tests/data
make tests-coverage
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
id: go
- name: "Get dependencies"
id: dependencies
run: |
go get
- name: Run golangci-lint
uses: golangci/[email protected]
with:
args: --verbose --timeout=2m
compile:
name: Compile validation
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
id: go
- name: "Get dependencies"
id: dependencies
run: |
go get
- name: build & execute
run: |
go build -ldflags="-X 'github.com/karl-cardenas-coding/mywhoop/cmd.VersionString=1.0.0'" -o=mywhoop -v
./mywhoop