Skip to content

Commit

Permalink
Merge pull request #17 from Disper/github_action_test_runner
Browse files Browse the repository at this point in the history
GitHub action test runner
  • Loading branch information
kyma-bot authored Sep 11, 2023
2 parents 1781d78 + 397372f commit 7abb129
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run unit tests
on:
push:
branches: [ "main" ]
pull_request:
# Trigger for Pull Request
branches: [ "main" ]
permissions:
contents: read
jobs:
# lint:
############################################################################################
validate:
runs-on: ubuntu-latest
steps:
############################################################################################
- name: Checkout code
uses: actions/checkout@v3
############################################################################################
- name: Set up cache
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
/home/runner/work/cluster-inventory/cluster-inventory/bin
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
############################################################################################
- name: Set up go environment
uses: actions/setup-go@v4
with:
go-version: 1.21
############################################################################################
- name: Run unit tests
run: make test

0 comments on commit 7abb129

Please sign in to comment.