generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.18 KB
/
build.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
name: build
on:
pull_request:
push:
branches:
- develop
- 'releases/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: npm ci
- run: npm run all
- name: check build up to date
run: git diff --exit-code --stat HEAD
test-e2e-all:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v1
- uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: npm ci
- name: check all apps installed
run: npm run verify:installed gflows
- name: check apps are usable
run: |
npm run verify:output \
"gflows --config e2e/.gflows/config.yml --disable-colors check" \
"$(printf 'Checking gflows ... OK\nWorkflows up to date')"
test-e2e-specific-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./
with:
version: 0.3.2
token: ${{ secrets.GITHUB_TOKEN }}
- run: npm ci
- name: check specific version is installed
run: npm run verify:output "gflows version" "gflows version 0.3.2"