generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (48 loc) · 1.46 KB
/
selftest.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
# Changes to the v2 branch must be proposed via PRs in the branch
# v2-next. This way we can check the action just as GHA is going to
# use it.
name: Selftest
on:
pull_request:
# branches:
# - disabled
jobs:
setup-alire:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12, macos-14, windows-latest]
target: [stable, nightly, source]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup stable
uses: ./ # This uses the action code in the current PR
if: matrix.target == 'stable'
with:
cache: false
# We test without cache, as caching is tested in a separate workflow.
# This way we make sure the cache isn't hiding any issue.
- name: Setup nightly
uses: ./
if: matrix.target == 'nightly'
with:
version: nightly
cache: false
- name: Setup from source (master)
uses: ./
if: matrix.target == 'source'
with:
branch: master
cache: false
# Verify proper builds
- run: alr -n version | grep "os:" | grep LINUX
if: matrix.os == 'ubuntu-latest'
shell: bash
- run: alr -n version | grep "os:" | grep MACOS
if: matrix.os == 'macos-latest'
shell: bash
- run: alr -n version | grep "os:" | grep WINDOWS
if: matrix.os == 'windows-latest'
shell: bash