Skip to content

Commit

Permalink
extended the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Skarlso committed Oct 11, 2024
1 parent 59fc2e7 commit 19c2b99
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
contents: read # for actions/checkout to fetch code

jobs:
run-test-suite:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -34,5 +34,42 @@ jobs:
${{ runner.os }}-go-
- name: Run lint
run: make lint

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Restore Go cache
uses: actions/cache@v4
with:
path: /home/runner/work/_temp/_github_home/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: make test

crd-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: '${{ github.workspace }}/go.mod'
- name: Restore Go cache
uses: actions/cache@v4
with:
path: /home/runner/work/_temp/_github_home/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run CRD Test
run: |
make build && ./cty test sample-tests

0 comments on commit 19c2b99

Please sign in to comment.