-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 981 Bytes
/
it-multiformat.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
name: IT Mulitple Formats
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
it-action-format-multi:
name: Multiple Formats
runs-on: ubuntu-latest
steps:
- name: Checkout sources for fixtures
uses: actions/checkout@v3
- name: When we require to load all vars from a set of files of different formats
uses: zlatko-ms/envarfiles@main
with:
paths: |
./test/fixtures/integ/plain/multi.properties
./test/fixtures/integ/json/multi.json
./test/fixtures/integ/yaml/multi.yaml
- name: Then all the vars from the plain text file are loaded
run: |
# load assertion function
source ./test/shell/assertvariable.sh
# perform assertions
assertDefinedAndEqualTo "build_version_major" "12"
assertDefinedAndEqualTo "build_version_minor" "13"
assertDefinedAndEqualTo "build_version_patch" "14"