-
Notifications
You must be signed in to change notification settings - Fork 18
69 lines (65 loc) · 1.62 KB
/
ci.yaml
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
67
68
69
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
units:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
cache: 'npm'
registry-url: https://npm.pkg.github.com/
- run: npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.PAT }}
- run: npm test
dist-is-up-to-date:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16.x
cache: 'npm'
registry-url: https://npm.pkg.github.com/
- run: npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.PAT }}
- run: npm run prepare
- run: git diff --name-only --exit-code
integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run action to show Project Piper version
uses: ./
with:
command: version
flags: "-v --noTelemetry"
- name: Run action to show Project Piper version using latest
uses: ./
with:
command: version
flags: "-v --noTelemetry"
piper-version: latest
- name: Run action to show Project Piper version using master
uses: ./
with:
command: version
flags: "-v --noTelemetry"
piper-version: master
- name: Run action to show Project Piper version using v1.13.0
uses: ./
with:
command: version
flags: "-v --noTelemetry"
piper-version: v1.13.0