Skip to content

Commit

Permalink
Add unit tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoney committed Jun 11, 2024
1 parent 3f7ba46 commit 4e817b8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Run golang tests on branch main

name: Unit Tests

on:
push:
branches:
- main
pull_request:

jobs:
tests:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22.3
-
name: Run Full Test Suite
run: |
go run test/e2e/main.go -memprofile profiles/ -interval 1m
env:
CGO_ENABLED: 0
- name: Archive the profiles
uses: actions/upload-artifact@v4
with:
name: mem-profiles
path: profiles/memprofile-*.pprof
retention-days: 5

0 comments on commit 4e817b8

Please sign in to comment.