Migrate CI tests to GH actions #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: warden verify | |
on: | |
push: | |
branches: [ "main", "release-*" ] | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache: true | |
- name: lint | |
run: make lint | |
- name: unit test | |
run: make test | |
integration-test: | |
needs: verify | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create Single Cluster | |
uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 #v2.4.0 | |
with: | |
cluster-name: "k3dCluster" | |
args: >- | |
--agents 1 | |
--port 80:80@loadbalancer | |
--port 443:443@loadbalancer | |
--wait | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21' | |
cache: true | |
- name: run test | |
run: make verify-on-cluster |