-
Notifications
You must be signed in to change notification settings - Fork 44
63 lines (58 loc) · 1.86 KB
/
ci.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
62
63
name: Continuous Integration
on: [push, pull_request]
env:
PACKAGE: NeoVintageous
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
version: [3]
container:
image: sublimetext/unittesting
options: --cap-add=NET_ADMIN
env:
SUBLIME_TEXT_VERSION: ${{ matrix.version }}
steps:
- uses: actions/checkout@v1
- run: export DISPLAY=":99.0"
- run: sh -e /etc/init.d/xvfb start
- run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
- name: Test
run: |
PATH="$HOME/.local/bin:$PATH"
sh github.sh bootstrap
sh github.sh run_tests --coverage
sh github.sh run_syntax_compatibility
sh github.sh run_syntax_tests
macos:
runs-on: macos-latest
strategy:
fail-fast: true
matrix:
version: [3]
env:
SUBLIME_TEXT_VERSION: ${{ matrix.version }}
steps:
- uses: actions/checkout@v1
- run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
- name: Test
run: |
export PATH="$HOME/.local/bin:$PATH"
sh github.sh bootstrap
sh github.sh run_tests --coverage
sh github.sh run_syntax_compatibility
sh github.sh run_syntax_tests
# *sigh* github-actions runs-on windows is broken
# windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v1
# - run: (new-object net.webclient).DownloadFile("https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.ps1","github.ps1")
# - name: Test
# run: |
# ./github.ps1 "bootstrap" -verbose
# ./github.ps1 "run_tests" -coverage -verbose
# ./github.ps1 "run_syntax_compatibility"
# ./github.ps1 "run_syntax_tests"