-
Notifications
You must be signed in to change notification settings - Fork 12
58 lines (51 loc) · 1.45 KB
/
test.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
---
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PLZ_CONFIG_PROFILE: ci
SEGMENT_DOWNLOAD_TIMEOUT_MINS: "2"
permissions:
# Grant the ability to checkout the repository
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-build
cancel-in-progress: true
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Cache plz
id: cache-plz
uses: actions/cache@v3
with:
path: .plz-cache
key: ${{ runner.os }}-plz
- name: Build
env:
# This uses a public read-only PAT tied to VJftw, please don't abuse! :pray:
# See: https://github.com/actions/setup-node/issues/49 for reasons.
GITHUB_TOKEN: ${{ secrets.VJFTW_GITHUB_TOKEN }}
CONSUMER_JIRA_API_TOKEN: ${{secrets.CONSUMER_JIRA_API_TOKEN}}
CONSUMER_JIRA_USER: ${{secrets.CONSUMER_JIRA_USER}}
CONSUMER_JIRA_URL: ${{secrets.CONSUMER_JIRA_URL}}
run: ./pleasew build -p -v 2 //...
test:
name: Test
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-test
cancel-in-progress: true
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Test
run: ./pleasew test //...