-
Notifications
You must be signed in to change notification settings - Fork 3
83 lines (70 loc) · 2.07 KB
/
engine-ci.yaml
File metadata and controls
83 lines (70 loc) · 2.07 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
name: Engine CI
on:
push:
branches:
- main
- next
paths:
- '**/*.go'
- 'types/**/*'
- 'go.mod'
- 'go.sum'
- '.github/actions/go/action.yaml'
- '.github/actions/node/action.yaml'
- '.github/workflows/engine-ci.yaml'
pull_request:
branches:
- main
- next
paths:
- '**/*.go'
- 'types/**/*'
- 'go.mod'
- 'go.sum'
- '.github/actions/go/action.yaml'
- '.github/actions/node/action.yaml'
- '.github/workflows/engine-ci.yaml'
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: true
env:
WG_TELEMETRY_DISABLED: 1
WORKING_DIRECTORY: '.'
CI: true
jobs:
build_test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./.github/actions/go
with:
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: ./.github/actions/node
with:
working-directory: ${{ env.WORKING_DIRECTORY }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Protoc
uses: abelfodil/protoc-action@v1
with:
protoc-version: '21.5'
- name: Start MinIO container
run: docker run -d --rm --name=minio --health-cmd "curl http://localhost:9000/minio/health/live" -e MINIO_ROOT_USER=minio -e MINIO_ROOT_PASSWORD=minio123 -p 9000:9000 -p 9090:9090 quay.io/minio/minio:RELEASE.2023-03-20T20-16-18Z server /data --console-address ":9090"
- name: Setup MinIO container
run: make bootstrap-minio
- run: pnpm install --ignore-scripts
- run: make engine-dev
- name: Check if git is not dirty after generating files
run: git diff --no-ext-diff --exit-code
- name: Linters
uses: golangci/golangci-lint-action@v3
with:
# keep in sync with local version
version: v1.52.2
args: --timeout 3m
- name: Run unit and integration tests
run: go test -race ./...
env:
INT: true