2022-03-22 11:03:15 -04:00
|
|
|
name: Unit Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
GOPRIVATE: github.com/edgelesssys/*
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.18
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
2022-04-07 10:39:21 -04:00
|
|
|
run: sudo apt-get update && sudo apt-get install -y pkg-config libcryptsetup12 libcryptsetup-dev
|
2022-03-22 11:03:15 -04:00
|
|
|
|
2022-05-31 12:33:27 -04:00
|
|
|
- name: Test main module
|
|
|
|
run: go test -race -count=3 ./...
|
|
|
|
|
|
|
|
- name: Test hack module
|
|
|
|
run: go test -race -count=3 ./...
|
|
|
|
working-directory: hack
|