From 0d87580f570b97836dd5ba42ad53aaeb3d71bf2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahm=C3=A9d=20Belhoula?= <45313572+abelhoula@users.noreply.github.com> Date: Sat, 28 Oct 2023 17:57:08 +0100 Subject: [PATCH] feat(spacetemplates): added workflow for unit tests --- .github/workflows/tests.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..a96bad3 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 ./... \ No newline at end of file