Skip to content

Commit

Permalink
ci: simple build and lint jobs, upgrade to Go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin committed Jan 16, 2025
1 parent 683ce85 commit 10d7ebe
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 569 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ci

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

permissions:
checks: write

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: Build
run: go build ./...

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.2

permissions:
contents: read # Required: allow read access to the content for analysis.
pull-requests: read # Optional: allow read access to pull request. Use with `only-new-issues` option.
checks: write
17 changes: 17 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
linters:
disable-all: true
enable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
- testifylint
- goimports
- goconst

issues:
exclude-dirs:
- .github
- docs
11 changes: 9 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/status-im/status-keycard-go

go 1.16
go 1.22

require (
github.com/ebfe/scard v0.0.0-20190212122703-c3d1b1916a95
Expand All @@ -10,4 +10,11 @@ require (
golang.org/x/text v0.4.0
)

replace github.com/ebfe/scard => github.com/keycard-tech/scard v0.0.0-20241212105412-f6a0ad2a2912
require (
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/go-stack/stack v1.8.1 // indirect
golang.org/x/sys v0.2.0 // indirect
)

replace github.com/ebfe/scard => github.com/keycard-tech/scard v0.0.0-20241212105412-f6a0ad2a2912
Loading

0 comments on commit 10d7ebe

Please sign in to comment.