Skip to content

Commit

Permalink
[Chore] Add tests for 32-bit arch
Browse files Browse the repository at this point in the history
  • Loading branch information
maypok86 committed Mar 5, 2024
1 parent 700bab5 commit 21d0a9d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test-32-bit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test 32-bit arch

on: [push]

jobs:
test:
strategy:
matrix:
go-version: [ 1.18.x, 1.19.x, 1.20.x, 1.21.x ]

runs-on: ubuntu-latest

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Test 32-bit arch
run: make test.32-bit
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ test.unit: ## Run all unit tests
cat coverage.txt.tmp | grep -v -E "/generated/|/cmd/" > coverage.txt
rm coverage.txt.tmp

.PHONY: test.32-bit
test.32-bit: ## Run tests on 32-bit arch
GOARCH=386 go test -v ./...

.PHONY: cover
cover: test.unit ## Run all the tests and opens the coverage report
go tool cover -html=coverage.txt
Expand Down

0 comments on commit 21d0a9d

Please sign in to comment.