forked from tfutils/tfenv
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.05 KB
/
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: 'Test'
on:
push:
branches:
- 'master'
pull_request:
branches:
- 'master'
workflow_dispatch:
jobs:
# Only checking latest Linux/UNIX on pulls to save execution times
test-master-pulls:
if: github.event_name == 'pull_request'
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os:
- 'macos-latest'
- 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v2'
- name: 'Run all tests'
run: './test/run.sh'
shell: 'bash'
# When we push to master, test everything in order to guarantee releases
test-master-pushes:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os:
# - 'macos-11.0' # Not yet available
- 'macos-10.15'
- 'ubuntu-20.04'
- 'ubuntu-18.04'
- 'ubuntu-16.04'
- 'windows-2019'
steps:
- uses: 'actions/checkout@v2'
- name: 'Run all tests'
run: './test/run.sh'
shell: 'bash'