mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-09 14:07:56 -05:00
Update workflows.
This commit is contained in:
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
# Set variables that will be available to all builds.
|
# Set variables that will be available to all builds.
|
||||||
env_vars:
|
env_vars:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
release_version: ${{ steps.release_version.outputs.release_version }}
|
release_version: ${{ steps.release_version.outputs.release_version }}
|
||||||
binary: ${{ steps.binary.outputs.binary }}
|
binary: ${{ steps.binary.outputs.binary }}
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
|
|
||||||
# Build.
|
# Build.
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
needs: [env_vars]
|
needs: [env_vars]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository into the Go module directory
|
- name: Check out repository into the Go module directory
|
||||||
|
|||||||
16
.github/workflows/golangci-lint.yml
vendored
16
.github/workflows/golangci-lint.yml
vendored
@@ -1,23 +1,23 @@
|
|||||||
name: golangci-lint
|
name: golangci-lint
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
golangci:
|
golangci:
|
||||||
name: lint
|
name: lint
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '^1.21'
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v3
|
uses: golangci/golangci-lint-action@v4
|
||||||
with:
|
with:
|
||||||
args: --timeout=60m
|
only-new-issues: true
|
||||||
|
|||||||
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -44,12 +44,12 @@ jobs:
|
|||||||
needs: [create_release, env_vars]
|
needs: [create_release, env_vars]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '^1.20'
|
go-version: '^1.21'
|
||||||
|
|
||||||
- name: Check out repository into the Go module directory
|
- name: Check out repository into the Go module directory
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Select correct tag
|
- name: Select correct tag
|
||||||
run: git checkout ${{ github.ref_name }}
|
run: git checkout ${{ github.ref_name }}
|
||||||
@@ -119,12 +119,12 @@ jobs:
|
|||||||
needs: [create_release, env_vars]
|
needs: [create_release, env_vars]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '^1.20'
|
go-version: '^1.21'
|
||||||
|
|
||||||
- name: Check out repository into the Go module directory
|
- name: Check out repository into the Go module directory
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Select correct tag
|
- name: Select correct tag
|
||||||
run: git checkout ${{ github.ref_name }}
|
run: git checkout ${{ github.ref_name }}
|
||||||
@@ -164,12 +164,12 @@ jobs:
|
|||||||
needs: [create_release, env_vars]
|
needs: [create_release, env_vars]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '^1.20'
|
go-version: '^1.21'
|
||||||
|
|
||||||
- name: Check out repository into the Go module directory
|
- name: Check out repository into the Go module directory
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Select correct tag
|
- name: Select correct tag
|
||||||
run: git checkout ${{ github.ref_name }}
|
run: git checkout ${{ github.ref_name }}
|
||||||
|
|||||||
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -6,10 +6,10 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '^1.21'
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: n8maninger/action-golang-test@v1
|
- uses: n8maninger/action-golang-test@v1
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.20-bookworm as builder
|
FROM golang:1.21-bookworm as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user