-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.taskcluster.yml
66 lines (61 loc) · 2.14 KB
/
.taskcluster.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
version: 1
policy:
pullRequests: public
tasks:
$let:
head_rev:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.sha}
else:
$if: 'tasks_for == "github-push"'
then: ${event.after}
else: ${event.release.tag_name}
repository:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.repo.html_url}
else: ${event.repository.html_url}
in:
- taskId: { $eval: as_slugid("tests_task") }
provisionerId: proj-taskcluster
workerType: gw-ubuntu-24-04
created: {$fromNow: ''}
deadline: {$fromNow: '1 day'}
payload:
command:
- - /bin/bash
- '-vxec'
- |
export GOROOT="$(pwd)/go1.19.9/go"
export GOPATH="$(pwd)/gopath1.19.9"
export PATH="$${GOPATH}/bin:$${GOROOT}/bin:$(pwd)/bin:$${PATH}"
git --version
go version
go env
git clone '${repository}' d2g
cd d2g
git -c advice.detachedHead=false checkout '${head_rev}'
go mod tidy
git status
test $(git status --porcelain | wc -l) == 0
go install ./...
go vet ./...
go test ./...
../golangci-lint/golangci-lint-1.51.2-*/golangci-lint run --timeout=5m
mounts:
- content:
sha256: e858173b489ec1ddbe2374894f52f53e748feed09dde61be5b4b4ba2d73ef34b
url: https://storage.googleapis.com/golang/go1.19.9.linux-amd64.tar.gz
directory: go1.19.9
format: tar.gz
- content:
sha256: 4de479eb9d9bc29da51aec1834e7c255b333723d38dbd56781c68e5dddc6a90b
url: >-
https://github.com/golangci/golangci-lint/releases/download/v1.51.2/golangci-lint-1.51.2-linux-amd64.tar.gz
directory: golangci-lint
format: tar.gz
maxRunTime: 3600
metadata:
name: httpbackoff CI
description: builds and tests httpbackoff
owner: [email protected]
source: ${event.repository.url}