-
Notifications
You must be signed in to change notification settings - Fork 83
/
.taskcluster.yml
56 lines (56 loc) · 1.5 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
version: 1
reporting: checks-v1
policy:
pullRequests: public
tasks:
$let:
head_rev:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.sha}
else: ${event.after}
repository:
$if: 'tasks_for == "github-pull-request"'
then: ${event.pull_request.head.repo.html_url}
else: ${event.repository.html_url}
in:
$map:
- name: yarn test
image: node:16.18.1
command: >-
yarn --frozen-lockfile &&
yarn test
- name: yarn build
image: node:16.18.1
command: >-
yarn --frozen-lockfile &&
BUGZILLA_ENDPOINT=fake GITHUB_PERSONAL_API_TOKEN=fake yarn build
- name: yarn lint
image: node:16.18.1
command: >-
yarn --frozen-lockfile &&
yarn lint
each(opts):
provisionerId: 'proj-misc'
workerType: 'ci'
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
payload:
maxRunTime: 3600
image: "${opts.image}"
env:
CI: "true"
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${repository} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${head_rev} &&
${opts.command}
metadata:
name: "${opts.name}"
description: Codetribute CI
owner: nobody@mozilla.com
source: https://github.com/mozilla-frontend-infra/codetribute