@@ -12,83 +12,6 @@ concurrency:
12
12
cancel-in-progress : ${{ github.event_name == 'pull_request' }}
13
13
14
14
jobs :
15
- changes :
16
- runs-on : ubuntu-latest
17
- outputs :
18
- docs-only : ${{ steps.filter.outputs.docs_count == steps.filter.outputs.all_count }}
19
- sh : ${{ steps.filter.outputs.sh }}
20
- ts : ${{ steps.filter.outputs.ts }}
21
- k8s : ${{ steps.filter.outputs.k8s }}
22
- steps :
23
- - uses : actions/checkout@v3
24
- # For pull requests it's not necessary to checkout the code
25
- - uses : dorny/paths-filter@v2
26
- id : filter
27
- with :
28
- filters : |
29
- all:
30
- - '**'
31
- docs:
32
- - 'docs/**'
33
- # For testing:
34
- # - '.github/**'
35
- sh:
36
- - "**.sh"
37
- ts:
38
- - 'site/**'
39
- k8s:
40
- - 'helm/**'
41
- - Dockerfile
42
- - scripts/helm.sh
43
- - id : debug
44
- run : |
45
- echo "${{ toJSON(steps.filter )}}"
46
-
47
- gen :
48
- name : " style/gen"
49
- timeout-minutes : 8
50
- runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
51
- needs : changes
52
- if : needs.changes.outputs.docs-only == 'false'
53
- steps :
54
- - uses : actions/checkout@v3
55
-
56
- - name : Install node_modules
57
- run : ./scripts/yarn_install.sh
58
-
59
- - uses : actions/setup-go@v3
60
- with :
61
- cache : true
62
- go-version : " ~1.19"
63
-
64
- - name : Install sqlc
65
- run : |
66
- curl -sSL https://github.com/kyleconroy/sqlc/releases/download/v1.13.0/sqlc_1.13.0_linux_amd64.tar.gz | sudo tar -C /usr/bin -xz sqlc
67
- - name : Install protoc-gen-go
68
- run : go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
69
- - name : Install protoc-gen-go-drpc
70
- run : go install storj.io/drpc/cmd/protoc-gen-go-drpc@v0.0.26
71
- - name : Install goimports
72
- run : go install golang.org/x/tools/cmd/goimports@latest
73
-
74
- - name : Install Protoc
75
- run : |
76
- # protoc must be in lockstep with our dogfood Dockerfile
77
- # or the version in the comments will differ.
78
- set -x
79
- cd dogfood
80
- DOCKER_BUILDKIT=1 docker build . --target proto -t protoc
81
- protoc_path=/usr/local/bin/protoc
82
- docker run --rm --entrypoint cat protoc /tmp/bin/protoc > $protoc_path
83
- chmod +x $protoc_path
84
- protoc --version
85
-
86
- - name : make gen
87
- run : " make --output-sync -j -B gen"
88
-
89
- - name : Check for unstaged files
90
- run : ./scripts/check_unstaged.sh
91
-
92
15
test-go :
93
16
name : " test/go"
94
17
runs-on : ${{ matrix.os == 'ubuntu-latest' && github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || matrix.os == 'windows-2022' && github.repository_owner == 'coder' && 'windows-latest-8-cores'|| matrix.os }}
0 commit comments