generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (44 loc) · 932 Bytes
/
test.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
name: "units-test"
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
# unit tests
units:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm test
# test action works running from the graph
test:
strategy:
fail-fast: true
matrix:
include:
- swift-version: wasm-5.7.1-RELEASE
os: ubuntu-20.04
- swift-version: wasm-5.6.0-RELEASE
os: macos-11
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./
with:
swift-version: ${{ matrix.swift-version }}
- run: swift --version
test-default:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./
- run: swift --version
test-nightly:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./nightly
- run: swift --version