Merge pull request #25 from syngit-org/dev #50
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: Tests | |
on: | |
# run it on push to the default repository branch | |
push: | |
branches: | |
- main | |
- dev | |
tags: | |
- '*' | |
jobs: | |
tests: | |
name: Setup KinD cluster and run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Install kubectl | |
uses: azure/setup-kubectl@v1 | |
with: | |
version: 'latest' | |
- name: Set up KinD | |
uses: helm/[email protected] | |
with: | |
version: v0.23.0 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.22' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y make | |
- name: Setup the tls certs | |
run: ./config/webhook/gen-certs-serv-cli.sh | |
- name: Run tests | |
run: make test |