fix fixing depedencie #751
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: Build and Test | |
on: ["push", "pull_request"] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.20.0" | |
- uses: alexellis/setup-arkade@v3 | |
- uses: alexellis/arkade-get@master | |
with: | |
golangci-lint: latest | |
- name: Lint Go Code | |
run: | | |
make lint-go | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
needs: [lint, test] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.20.0" | |
- name: Build | |
run: | | |
make build | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.20.0" | |
- name: Run Unit tests. | |
run: | | |
make test |