Skip to content

Commit

Permalink
Merge pull request #25 from hikhvar/refactor-ci
Browse files Browse the repository at this point in the history
move linting and docker build into test workflow
  • Loading branch information
hikhvar authored Nov 1, 2020
2 parents 6de0a07 + 3a658d3 commit b3442ec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 26 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/dockerimage.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/linting.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ jobs:
run: go test ./...
- name: Vet
run: go vet ./...
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run golangci-lint
uses: actions-contrib/golangci-lint@v1
image-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag mqtt2prometheus:${GITHUB_REF##*/}

0 comments on commit b3442ec

Please sign in to comment.