-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (51 loc) · 1.64 KB
/
tests.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
name: Test
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
- master
jobs:
tests:
name: ${{ matrix.version }} on ${{ matrix.os }} ${{ matrix.cache && '(cache)' || '' }}
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: true
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
version:
- latest # actual version
- 2.0.1 # specified version
cache: [true, false]
steps:
- uses: actions/checkout@v3
- name: install SDK
id: installer
uses: ./
with:
version: ${{ matrix.version }}
cache: ${{ matrix.cache }}
- name: outputs
run: |
[ -d "${{ steps.installer.outputs.root }}" ] || (echo "::error ::Missing output SDK root" && exit 1)
# [ -z "${{ steps.installer.outputs.version }}" ] || (echo "::error ::Missing output version" && exit 1)
echo "version: ${{ steps.installer.outputs.version }}"
- name: ENV
run: |
[ -d "$PLAYDATE_SDK_PATH" ] || (echo "::error ::Missing output PLAYDATE_SDK_PATH" && exit 1)
- name: equality
run: |
[ "$PLAYDATE_SDK_PATH" == "${{ steps.installer.outputs.root }}" ] || (echo "::error ::Env not eq output: PLAYDATE_SDK_PATH" && exit 1)
- name: $PATH
run: |
which pdc || (echo "::error ::Missing pdc from PATH." && exit 1)
- name: arm-none-eabi-gcc
run: |
which arm-none-eabi-gcc || (echo "::error ::Missing arm-none-eabi-gcc from PATH." && exit 1)