-
Notifications
You must be signed in to change notification settings - Fork 128
72 lines (57 loc) · 1.79 KB
/
update.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Update
on:
push:
branches:
- main
- v3
- pmm-*
tags:
- v[0-9]+.[0-9]+.[0-9]+*
pull_request:
paths-ignore:
- "admin/**"
- "agent/**"
- "api-tests/**"
- "cli-tests/**"
- "docs/**"
- "managed/**"
- "qan-api2/**"
- "vmproxy/**"
- "ui/**"
jobs:
build:
name: Build
if: false
strategy:
fail-fast: false
matrix:
image:
- perconalab/pmm-server:3-dev-latest # latest development version
env:
PMM_SERVER_IMAGE: ${{ matrix.image }}
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ${{ github.workspace }}/update
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Docker Up
run: docker compose up -d
- name: Install dev tools in container
run: docker exec pmm-update-server /root/go/src/github.com/percona/pmm/update/.devcontainer/install-dev-tools.sh
- name: Run install
run: docker exec pmm-update-server make -C /root/go/src/github.com/percona/pmm/update install
- name: Run license check and ansible checks
run: docker exec pmm-update-server make -C /root/go/src/github.com/percona/pmm/update check
- name: Run tests
run: docker exec pmm-update-server make -C /root/go/src/github.com/percona/pmm/update test-race
- name: Run with race detector and collect coverage information
run: docker exec pmm-update-server make -C /root/go/src/github.com/percona/pmm/update run-race-cover RUN_FLAGS='-debug -check'
- name: Upload coverage results
uses: codecov/codecov-action@v4
with:
file: cover.out
flags: update
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}