Skip to content

Commit bca8686

Browse files
author
Vasco Guita
committed
Migrate the BuildOnly job from Drone to GitHub Actions
1 parent 79a7d13 commit bca8686

File tree

688 files changed

+775
-834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

688 files changed

+775
-834
lines changed

.drone.star

-31
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ def main(ctx):
7272
return [
7373
checkStarlark(),
7474
buildAndPublishDocker(),
75-
buildOnly(),
7675
testIntegration(),
7776
release(),
7877
litmusOcisOldWebdav(),
@@ -208,36 +207,6 @@ def buildAndPublishDocker():
208207
],
209208
}
210209

211-
def buildOnly():
212-
return {
213-
"kind": "pipeline",
214-
"type": "docker",
215-
"name": "build-only",
216-
"platform": {
217-
"os": "linux",
218-
"arch": "amd64",
219-
},
220-
"trigger": {
221-
"event": {
222-
"include": [
223-
"pull_request",
224-
],
225-
},
226-
},
227-
"steps": [
228-
makeStep("ci"),
229-
{
230-
"name": "Docker build",
231-
"image": "plugins/docker",
232-
"settings": {
233-
"repo": "n/a",
234-
"dry_run": "true",
235-
"dockerfile": "Dockerfile.revad",
236-
},
237-
},
238-
],
239-
}
240-
241210
def testIntegration():
242211
return {
243212
"kind": "pipeline",

.github/workflows/build-and-test.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Test
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- "tools/**"
6+
- "docs/**"
7+
- ".drone.star"
8+
- ".drone.env"
9+
- ".fossa.yml"
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-and-test:
14+
runs-on: self-hosted
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Setup Go environment
19+
uses: actions/[email protected]
20+
with:
21+
go-version-file: go.mod
22+
- name: Install goimports
23+
run: go install golang.org/x/tools/cmd/[email protected]
24+
- name: Build
25+
run: make build
26+
- name: Test
27+
run: make test

.github/workflows/build-docker.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build Docker
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- "tools/**"
6+
- "docs/**"
7+
- ".drone.star"
8+
- ".drone.env"
9+
- ".fossa.yml"
10+
workflow_dispatch:
11+
12+
jobs:
13+
docker:
14+
runs-on: self-hosted
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v2
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v2
22+
- name: Build
23+
uses: docker/build-push-action@v3
24+
with:
25+
context: .
26+
file: Dockerfile.revad

.github/workflows/golangci-lint.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ name: golangci-lint
22
on:
33
pull_request:
44
paths-ignore:
5-
- ".github/**"
65
- "Makefile"
7-
- "tools/**"
86
- "docs/**"
9-
- "tests/**"
107
- ".drone.star"
118
- ".drone.env"
129
- ".fossa.yml"

.golangci.yaml

+22-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,25 @@ linters:
6464
- scopelint # deprecated since v1.39.0 - replaced by 'exportloopref'.
6565
- rowserrcheck # disabled because of generics - https://github.com/golangci/golangci-lint/issues/2649.
6666
- sqlclosecheck # disabled because of generics - https://github.com/golangci/golangci-lint/issues/2649.
67-
- wastedassign # disabled because of generics - https://github.com/golangci/golangci-lint/issues/2649.
67+
- wastedassign # disabled because of generics - https://github.com/golangci/golangci-lint/issues/2649.
68+
69+
linters-settings:
70+
goheader:
71+
template: |
72+
Copyright 2018-2022 CERN
73+
74+
Licensed under the Apache License, Version 2.0 (the "License");
75+
you may not use this file except in compliance with the License.
76+
You may obtain a copy of the License at
77+
78+
http://www.apache.org/licenses/LICENSE-2.0
79+
80+
Unless required by applicable law or agreed to in writing, software
81+
distributed under the License is distributed on an "AS IS" BASIS,
82+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
83+
See the License for the specific language governing permissions and
84+
limitations under the License.
85+
86+
In applying this license, CERN does not waive the privileges and immunities
87+
granted to it by virtue of its status as an Intergovernmental Organization
88+
or submit itself to any jurisdiction.

Makefile

+1-5
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ litmus-test-new: build
6969
docker run --rm --network=host -e LITMUS_URL=$(LITMUS_URL_NEW) -e LITMUS_USERNAME=$(LITMUS_USERNAME) -e LITMUS_PASSWORD=$(LITMUS_PASSWORD) -e TESTS=$(TESTS) owncloud/litmus:latest
7070
pkill revad
7171
lint:
72-
go run tools/check-license/check-license.go
7372
go vet ./...
7473

7574
contrib:
@@ -87,14 +86,11 @@ build-ci: off
8786
go build -ldflags ${CI_BUILD_FLAGS} -o ./cmd/revad/revad ./cmd/revad
8887
go build -ldflags ${CI_BUILD_FLAGS} -o ./cmd/reva/reva ./cmd/reva
8988

90-
lint-ci:
91-
go run tools/check-license/check-license.go
92-
9389
gen-doc:
9490
go run tools/generate-documentation/main.go
9591

9692
# to be run in CI platform
97-
ci: build-ci test lint-ci
93+
ci: build-ci test
9894

9995
# to be run in Docker build
10096
build-revad-docker: off

cmd/reva/app-tokens-create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/app-tokens-list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/app-tokens-remove.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/arguments.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/completer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/configure.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/download.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/executor.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/getlock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/grpc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/help.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/import.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/login.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ls.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/mkdir.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/mv.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-find-accepted-users.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-invite-forward.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-invite-generate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-share-create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-share-list-received.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-share-list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-share-remove.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-share-update-received.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/ocm-share-update.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/open-in-app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/preferences.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/public-share-create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/public-share-list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/public-share-remove.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/public-share-update.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/recycle-list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/recycle-purge.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

cmd/reva/recycle-restore.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 CERN
1+
// Copyright 2018-2022 CERN
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)