-
Notifications
You must be signed in to change notification settings - Fork 15
60 lines (52 loc) · 1.3 KB
/
samples-tests.yml
File metadata and controls
60 lines (52 loc) · 1.3 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
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
name: Sample Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Enable manual triggering
workflow_dispatch:
jobs:
test:
name: Token Samples Tests
runs-on: ubuntu-latest
strategy:
matrix:
include:
- platform: "fabricx"
- platform: "fabric3"
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Verify Go installation
run: |
go version
echo "GOPATH: $GOPATH"
echo "GOROOT: $GOROOT"
- name: Set up Python
if: ${{ matrix.platform == 'fabricx' }}
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Ansible
if: ${{ matrix.platform == 'fabricx' }}
run: |
python -m pip install --upgrade pip
pip install ansible ansible-core
ansible --version
- name: Run samples tests on ${{ matrix.platform }}
env:
PLATFORM: ${{ matrix.platform }}
run: |
cd samples/tokens
make install-prerequisites test