-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.03 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
name: Action Tests
on:
push:
branches:
- main
pull_request:
defaults:
run:
shell: bash
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# gomplate-version: [v3.10.0]
gomplate-version: [v3.10.0, v3.9.0, v3.8.0]
# os: [macos-latest, windows-latest, ubuntu-latest]
# version: [1.1.0, 1.0.0]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup gomplate
uses: ./
with:
gomplate-version: ${{ matrix.gomplate-version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Verify gomplate version installed
run: |
export GOMPLATE_VERSION=$( gomplate --version | awk '{print "v" $3}' )
if [ "$GOMPLATE_VERSION" != "${{ matrix.gomplate-version }}" ]; then
echo "error: gomplate version ${{ matrix.gomplate-version }} expected; got $GOMPLATE_VERSION"
exit 1
fi
echo "Gomplate $GOMPLATE_VERSION installed successfully."