Skip to content

Commit

Permalink
ci: update versions in GH workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn committed May 19, 2024
1 parent e924f7f commit 6a4781d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,28 @@ on:
tags:
- 'v*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.19.x
go-version: 1.22.x

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v5
with:
version: latest
workdir: ./cmd/wifiqr
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
14 changes: 10 additions & 4 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: Test Coverage

on: [push, pull_request]
on:
push:
branches:
- '**'
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.19]
go-version: [1.22]
steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run coverage
run: go test . -coverprofile=coverage.out -covermode=atomic
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
name: Test

on: [push, pull_request]
on:
push:
branches:
- '**'
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.18, 1.19]
go-version: [1.18, 1.22]
steps:
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Test
run: go test ./...

0 comments on commit 6a4781d

Please sign in to comment.