-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (49 loc) · 1.36 KB
/
test-released-version.yml
File metadata and controls
65 lines (49 loc) · 1.36 KB
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
name: test-released-version
on:
workflow_dispatch:
inputs:
version:
description: 'the version to be tested'
required: true
jobs:
test-non-windows-image:
name: 'Test Non-Windows Image'
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
include:
- os: 'ubuntu-latest'
label: 'linux'
- os: 'macos-latest'
label: 'mac'
runs-on: ${{matrix.os}}
steps:
- name: 'Setup Node'
uses: actions/setup-node@v2
with:
node-version: 12.x
- name: 'install'
run: npm i -g graphql-anonymizer@${{github.event.inputs.version}}
- name: 'run'
id: run-anonymizer
run: graphql-anonymizer <<< 'type Query{a:String}' > test_result
- name: 'assert'
run: grep "field1" test_result
test-windows-image:
name: 'Test Windows Image'
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- name: 'Setup Node'
uses: actions/setup-node@v2
with:
node-version: 12.x
- name: 'install'
run: npm i -g graphql-anonymizer@${{github.event.inputs.version}}
- name: 'run'
id: run-anonymizer
run: graphql-anonymizer <<< 'type Query{a:String}' > test_result
- name: 'assert'
run: grep "field1" test_result