Skip to content

Add Tests Batch 2

Add Tests Batch 2 #13

Workflow file for this run

---
name: Tests
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, labeled]
permissions:
contents: read
repository-projects: read
packages: read
concurrency:
group: ci-${{ github.ref }}-tests
cancel-in-progress: true
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Go modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: true
- name: Test
run: make tests