Skip to content

ci: Add CI for PRs

ci: Add CI for PRs #1

Workflow file for this run

on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run make lint
run: make lint
check_committed_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run make fmt
run: make fmt
- name: Check committed files
run: git diff --exit-code
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Golang
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build hetzner-dnsapi-proxy
run: make build