forked from pravega/zookeeper-operator
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (35 loc) · 847 Bytes
/
ci.yaml
File metadata and controls
37 lines (35 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: ci
permissions:
contents: read
on:
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.25
uses: actions/setup-go@v2
with:
go-version: 1.25
id: go
- name: Set up Go for root
run: |
sudo ln -sf `which go` `sudo which go` || true
sudo go version
- uses: actions/checkout@v2
- name: get go version
run: go version
- name: Gofmt and License checks
run: make check
- name: unit tests
run: make test
- name: Build Docker image (no push)
env:
DOCKER_BUILDKIT: 1
run: |
docker build \
--build-arg VERSION=0.0.0-ci \
--build-arg GIT_SHA=${GITHUB_SHA::7} \
-t zookeeper-operator:ci .