Skip to content

Commit

Permalink
ci: added build & test jobs (#121)
Browse files Browse the repository at this point in the history
Co-authored-by: Saeid Saeidee <[email protected]>
  • Loading branch information
saeidee and Saeid Saeidee authored May 22, 2023
1 parent 59beceb commit 91dcda2
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: tests

on:
push:
branches:
- '**'
- '*'
pull_request:
branches:
- master

permissions:
contents: read

jobs:
run-tests:
strategy:
matrix:
go: ['1.19', '1.18', '1.17']
platform: [ubuntu-latest]
runs-on: ubuntu-latest

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

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

# Run build of the application
- name: Run build
run: go build .

- name: Run tests
run: go test -race -count=1 -v ./...

0 comments on commit 91dcda2

Please sign in to comment.