Skip to content

Rename workflow to "compile and tests" and update Makefile targets fo… #4

Rename workflow to "compile and tests" and update Makefile targets fo…

Rename workflow to "compile and tests" and update Makefile targets fo… #4

name: compile and tests
on:
push:
branches:
- main
pull_request:
jobs:
compile-and-tests:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.23.4"
- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download dependencies
run: go mod download
- name: Compile
run: make compile
- name: Run unit tests
run: make unit-tests
- name: Run integration tests
run: make integration-test