-
Notifications
You must be signed in to change notification settings - Fork 9
66 lines (61 loc) · 1.6 KB
/
go.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
name: build project
on:
[push, pull_request]
jobs:
build-go:
name: build-go
runs-on: ubuntu-latest
container: golang:1.21-alpine
env:
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install packages
run: apk update && apk add git make bash curl
- name: Setup Ozone config
run: echo "${{ secrets.OZONE_CONFIG }}" | base64 -d > config/config-ozone-run_test.json
- name: make init
run: make init
- name: Install dev tools
run: make devtools
- name: Build
run: make build
- name: Test
run: make test
build-web:
name: build-web
runs-on: ubuntu-latest
container: node:14-alpine
env:
FORCE_COLOR: 1
NODE_DISABLE_COLORS: 0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install packages
run: apk update && apk add git make bash curl
- name: Install node dependencies
run: |
cd web/
yarn install --frozen-lockfile --non-interactive
- name: Lint code
run: |
cd web/
yarn lint --no-fix
- name: Run tests with coverage
run: |
cd web/
yarn test:unit:coverage
build-image:
name: build-image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build docker image
run: make build_image
- name: Show top level docker images
run: docker images