forked from get-gah/gah
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.36 KB
/
test.yaml
File metadata and controls
58 lines (53 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
name: 🧪 Test
on:
workflow_call:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Test
shell: bash
run: ./test/bats/bin/bats ./test
integration-alpine:
needs: test
runs-on: ubuntu-latest
container: library/alpine:3
steps:
- name: Install dependencies
run: apk add jq openssl bash git
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Test
shell: bash
run: ./test/bats/bin/bats ./test
- name: Install something
shell: bash
run: ./gah install mikefarah/yq --unattended
- name: Test if yq was installed correctly
run: yq --version
integration-debian:
needs: test
runs-on: ubuntu-latest
container: library/debian:13-slim
steps:
- name: Install dependencies
run: apt-get update && apt-get install -y jq openssl curl git
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Test
run: ./test/bats/bin/bats ./test
- name: Install something
run: ./gah install mikefarah/yq --unattended
- name: Test if yq was installed correctly
run: yq --version