Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLaverack committed Feb 6, 2022
1 parent 67f0bb5 commit 8992411
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout repository
uses: actions/checkout@v2

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
test:
lint:
runs-on: ubuntu-latest

steps:
Expand All @@ -20,10 +20,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Format & Vet
run: make fmt vet && git diff-index --quiet HEAD --

lint:
test:
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 8992411

Please sign in to comment.