-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (65 loc) · 1.74 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# SPDX-FileCopyrightText: © Vegard IT GmbH (https://vegardit.com) and contributors
# SPDX-FileContributor: Sebastian Thomschke, Vegard IT GmbH
# SPDX-License-Identifier: Apache-2.0
#
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions
name: Build
on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- '.github/*.yml'
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-12 # x64
- macos-latest # ARM
- windows-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4 #https://github.com/actions/checkout
- name: Install yq '4.30.6'
id: install-yq-4_30_6
uses: ./
with:
version: 4.30.6
- name: Test yq '4.30.6'
run: |
set -euxo pipefail
yq --version
echo 'greeting: "Hello World"' | yq -e ".greeting"
[[ '${{ steps.install-yq-4_30_6.outputs.version }}' == '4.30.6' ]]
- name: Install yq 'any'
id: install-yq-any
uses: ./
- name: Test yq 'any'
run: |
set -euxo pipefail
yq --version
echo 'greeting: "Hello World"' | yq -e ".greeting"
[[ '${{ steps.install-yq-any.outputs.version }}' == '4.30.6' ]]
- name: Install yq 'latest'
id: install-yq-latest
uses: ./
with:
version: latest
- name: Test yq 'latest'
run: |
set -euxo pipefail
yq --version
echo 'greeting: "Hello World"' | yq -e ".greeting"
[[ '${{ steps.install-yq.outputs.latest.version }}' != '4.30.6' ]]