Skip to content

Commit

Permalink
Only build/push on lint/test success
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Apr 12, 2024
1 parent 02edae5 commit 36b2be4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
name: build-push-ar
on:
push:
name: lint-test
on: [push]
permissions:
contents: read

jobs:
build-push-ar:
lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test with the Go CLI
run: go test -v ./...
build-push:
needs: [lint-test]
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/lint-test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-bookworm
FROM golang:1.22-bookworm

WORKDIR /app

Expand Down

0 comments on commit 36b2be4

Please sign in to comment.