Skip to content

Commit

Permalink
Added Workflow for Unit Testing
Browse files Browse the repository at this point in the history
Edited Linting Workflow
  • Loading branch information
Kartoffel096 committed Oct 1, 2024
1 parent 29e7b7a commit d13b480
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: golangci-lint
on:
push:
branches:
- '!master'
pull_request:
branches:
- '*'
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Upload Go test results

on:
pull_request:
branches:
- '*'

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.23.x']

steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Installing dependencies
run: go get .
- name: Run Unit Tests
run: go test -json > TestResults-${{ matrix.go-version }}.json
- name: Uploading Testresults
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: tests/results/TestResults-${{ matrix.go-version }}.json

0 comments on commit d13b480

Please sign in to comment.