Skip to content

Commit

Permalink
feat(spacetemplates): added workflow for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abelhoula authored Oct 28, 2023
1 parent eb33366 commit 0d87580
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Golang Unit tests

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21.x' ]

steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get .
- name: Run unit tests with Go CLI
run: go test ./...

0 comments on commit 0d87580

Please sign in to comment.