-
Notifications
You must be signed in to change notification settings - Fork 9
/
.taskcluster.yml
34 lines (33 loc) · 1.01 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
version: 1
policy:
pullRequests: public
tasks:
- $if: '(tasks_for == "github-pull-request" && event["action"] in ["opened", "reopened", "synchronize"])'
then:
taskId: {$eval: as_slugid("tests")}
created: {$fromNow: ''}
deadline: {$fromNow: '2 hours'}
provisionerId: proj-taskcluster
workerType: ci
payload:
maxRunTime: 3600
image: node
env:
NO_TEST_SKIP: "true"
command:
- /bin/bash
- '--login'
- '-cx'
- >-
git clone ${event.pull_request.head.repo.git_url} repo &&
cd repo &&
git config advice.detachedHead false &&
git checkout ${event.pull_request.head.sha} &&
yarn &&
yarn lint &&
yarn test
metadata:
name: "tests/lint"
description: "Material UI JSON Schema Viewer Tests / Lint"
owner: ${event.pull_request.user.login}@users.noreply.github.com
source: ${event.repository.url}