chore(deps): bump github.com/docker/docker #60
Workflow file for this run
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: 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 | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
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 |