Skip to content

Commit

Permalink
Merge pull request #452 from ericpromislow/migrate-2.1-to-gha
Browse files Browse the repository at this point in the history
Migrate release-2.1 to gha
  • Loading branch information
ericpromislow authored Jun 19, 2024
2 parents 2ab88c8 + 0f40fff commit 84e5047
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 44 deletions.
37 changes: 0 additions & 37 deletions .drone.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Wrangler CI

on:
push:
pull_request:
tags:
- v*
branches:
- 'release-*'
- 'master'

jobs:
ci:
strategy:
matrix:
arch:
- amd64
- arm64
runs-on: org-${{ github.repository_owner_id }}-${{ matrix.arch }}-k8s
container: registry.suse.com/bci/golang:1.22
steps:
- name : Checkout repository
# https://github.com/actions/checkout/releases/tag/v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name : Install mockgen
run: go install -v -x github.com/golang/mock/[email protected]
- name : Run CI
run: bash scripts/ci
11 changes: 4 additions & 7 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: golangci-lint

env:
SETUP_GO_VERSION: '^1.20'

on:
push:
pull_request:
Expand All @@ -23,16 +20,16 @@ jobs:
submodules: recursive

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ env.SETUP_GO_VERSION }}
go-version-file: go.mod

- name: Generate Golang
run: |
export PATH=$PATH:/home/runner/go/bin/
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.7.0
uses: golangci/golangci-lint-action@v4.0.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.55
version: v1.57

0 comments on commit 84e5047

Please sign in to comment.