generated from actions/javascript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (44 loc) · 1.3 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
name: "Tests"
on:
push:
paths:
- '.github/workflows/tests.yml'
- 'action.yml'
- 'dist/**'
pull_request:
paths:
- '.github/workflows/tests.yml'
- 'action.yml'
- 'dist/**'
jobs:
# test action works running from the graph
test:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ["ubuntu-18.04", "ubuntu-20.04", "macos-10.15", "macos-11", "macos-12"]
swift-version: ["5.3.3", "5.4.3", "5.5.3", "5.6.3", "5.7.1"]
include:
- operating-system: "ubuntu-18.04"
swift-version: "5.0.3"
- operating-system: "ubuntu-18.04"
swift-version: "5.1.5"
- operating-system: "ubuntu-18.04"
swift-version: "5.2.5"
- operating-system: "ubuntu-20.04"
swift-version: "5.2.5"
- operating-system: "macos-10.15"
swift-version: "5.1.5"
- operating-system: "macos-10.15"
swift-version: "5.2.5"
- operating-system: "ubuntu-22.04"
swift-version: "5.7.1"
steps:
- uses: actions/checkout@v3
- uses: ./
with:
swift-version: ${{ matrix.swift-version }}
- run: echo $PATH
- run: which swift
- run: swiftenv which swift
- run: swift -version