Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Update GHA workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baliedge committed Nov 21, 2023
1 parent 84ca50c commit b909fb3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 19 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# Optional workflow for Go Static Code Analysis check,
# copy this file to yours <repo>/.github/workflows folder only if you need this.
# See https://mailgun.atlassian.net/wiki/spaces/ENG/pages/4278943767/Go+Static+Code+Analysis+Linters

name: Lint

on:
push:
branches:
- master
branches: [ master ]
pull_request:

env:
Expand All @@ -22,9 +17,9 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v1

- name: Install Go
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: ./go.mod
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: On Pull Request

on:
pull_request:
branches: [ master, main ]
branches: [ master ]

jobs:
test:
Expand All @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v1

- name: Fetch git tags
run: git fetch --tags
Expand All @@ -25,14 +25,12 @@ jobs:
run: ./contrib/check-version.sh

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- run: go env

- name: Cache deps
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: On Release Workflow

on:
release:
types: [published]
types: [ published ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v1

- name: Fetch git tags
run: git fetch --tags
Expand All @@ -19,14 +19,14 @@ jobs:

# Buildx Needs QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

# We use Buildx so we can take advantage of the caching
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand Down

0 comments on commit b909fb3

Please sign in to comment.