Skip to content

Commit

Permalink
Merge pull request #1 from akarnani/update_actions
Browse files Browse the repository at this point in the history
update action versions
  • Loading branch information
akarnani authored Aug 29, 2022
2 parents e05129a + 8faad79 commit 132d7c4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ on: ["push"]

jobs:
release-linux-amd64:
name: release linux/amd64
name: build linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19'
- run: go version
- run: go build *.go
11 changes: 9 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.19'
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:
strategy:
matrix:
goos: ["linux", "darwin"]
goarch: ["amd64", "arm64"]
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.19
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.30
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: amd64
goarch: ${{ matrix.goarch }}

0 comments on commit 132d7c4

Please sign in to comment.