Move leader election to a self managed service #723
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: build | |
on: | |
push: | |
branches: | |
- master | |
- 'release-*' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21.6" | |
- uses: actions/checkout@v4 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v4 | |
- name: Run build | |
run: make build | |
- name: Run unit tests | |
run: make test | |
integration: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install -y lua-json | |
- name: Install HAProxy | |
uses: timwolla/action-install-haproxy@main | |
id: install-haproxy | |
with: | |
branch: "2.2" | |
use_openssl: yes | |
use_lua: yes | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.21.6" | |
- uses: actions/checkout@v4 | |
- uses: docker/login-action@v3 | |
with: | |
username: jcmoraisjr | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Run integration tests | |
run: make test-integration |