-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 891 Bytes
/
ci.yml
File metadata and controls
35 lines (28 loc) · 891 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
name: Ci Integration Test
on: push
jobs:
container-job:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
#official elastic github action: https://github.com/elastic/elastic-github-actions/tree/master/elasticsearch
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Runs Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 8.1.3
security-enabled: false
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Build
run: go build -v ./...
- name: Run coverage
run: go test